test-awful-client.lua: Wait for c:kill() to be done

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-01-01 14:33:13 +01:00
parent 30912c6f24
commit a1b5782e90
1 changed files with 15 additions and 0 deletions

View File

@ -214,7 +214,12 @@ table.insert(multi_screen_steps, function()
for _, c in ipairs(client.get()) do
c:kill()
end
if #client.get() == 0 then
return true
end
end)
table.insert(multi_screen_steps, function()
for i=1, screen.count() do
local s = screen[i]
test_client("screen"..i, nil, {
@ -240,6 +245,16 @@ end
for _, c in ipairs(client.get()) do
c:kill()
end
return true
end)
table.insert(multi_screen_steps, function()
if #client.get() == 0 then
return true
end
end)
table.insert(multi_screen_steps, function()
if screen.count() < 2 then return true end