Fix tests/test-awesomerc.lua (#1289)
Locally I got this, where only two xterms were opened. ``` % tests/run.sh test-awesomerc.lua awesome_log: /tmp/tmp.ToAKs6Gw4J/_awesome_test.log == Running test-awesomerc.lua == Error: timeout waiting for signal in step 1/11 (@20). ===> ERROR running test-awesomerc.lua! <=== Error: timeout waiting for signal in step 1/11 (@20). There were 1 errors! ```
This commit is contained in:
parent
58067834ad
commit
da415e0f9a
|
@ -24,14 +24,11 @@ end
|
|||
-- display deprecated warnings
|
||||
--awful.util.deprecate = function() end
|
||||
|
||||
local has_spawned = false
|
||||
|
||||
local steps = {
|
||||
|
||||
function(count)
|
||||
if count <= 1 and not has_spawned and #client.get() < 2 then
|
||||
for _=1, 5 do awful.spawn("xterm") end
|
||||
has_spawned = true
|
||||
if count <= 5 then
|
||||
awful.spawn("xterm")
|
||||
elseif #client.get() >= 5 then
|
||||
local c, _ = get_c_and_t()
|
||||
old_c = c
|
||||
|
@ -42,11 +39,6 @@ end,
|
|||
|
||||
-- Wait for the focus to change
|
||||
function()
|
||||
if has_spawned then
|
||||
has_spawned = false
|
||||
return nil
|
||||
end
|
||||
|
||||
assert(old_c)
|
||||
|
||||
-- Test layout
|
||||
|
|
Loading…
Reference in New Issue