Make some directories in testing area
This commit is contained in:
parent
13b3a18a75
commit
c279dd32ce
|
@ -95,6 +95,8 @@ describe("awful.completion.shell", function()
|
||||||
|
|
||||||
setup(function()
|
setup(function()
|
||||||
test_dir = get_test_dir()
|
test_dir = get_test_dir()
|
||||||
|
gfs.make_directories(test_dir .. '/true')
|
||||||
|
gfs.make_directories(test_dir .. '/just_a_directory')
|
||||||
os.execute(string.format(
|
os.execute(string.format(
|
||||||
'cd %s && touch localcommand && chmod +x localcommand', test_dir))
|
'cd %s && touch localcommand && chmod +x localcommand', test_dir))
|
||||||
io.popen = function(...) --luacheck: ignore
|
io.popen = function(...) --luacheck: ignore
|
||||||
|
@ -104,7 +106,9 @@ describe("awful.completion.shell", function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
teardown(function()
|
teardown(function()
|
||||||
|
assert.True(os.remove(test_dir .. '/just_a_directory'))
|
||||||
assert.True(os.remove(test_dir .. '/localcommand'))
|
assert.True(os.remove(test_dir .. '/localcommand'))
|
||||||
|
assert.True(os.remove(test_dir .. '/true'))
|
||||||
assert.True(os.remove(test_dir))
|
assert.True(os.remove(test_dir))
|
||||||
io.popen = orig_popen --luacheck: ignore
|
io.popen = orig_popen --luacheck: ignore
|
||||||
remove_test_path_dir(test_path)
|
remove_test_path_dir(test_path)
|
||||||
|
|
Loading…
Reference in New Issue