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
|
-- display deprecated warnings
|
||||||
--awful.util.deprecate = function() end
|
--awful.util.deprecate = function() end
|
||||||
|
|
||||||
local has_spawned = false
|
|
||||||
|
|
||||||
local steps = {
|
local steps = {
|
||||||
|
|
||||||
function(count)
|
function(count)
|
||||||
if count <= 1 and not has_spawned and #client.get() < 2 then
|
if count <= 5 then
|
||||||
for _=1, 5 do awful.spawn("xterm") end
|
awful.spawn("xterm")
|
||||||
has_spawned = true
|
|
||||||
elseif #client.get() >= 5 then
|
elseif #client.get() >= 5 then
|
||||||
local c, _ = get_c_and_t()
|
local c, _ = get_c_and_t()
|
||||||
old_c = c
|
old_c = c
|
||||||
|
@ -42,11 +39,6 @@ end,
|
||||||
|
|
||||||
-- Wait for the focus to change
|
-- Wait for the focus to change
|
||||||
function()
|
function()
|
||||||
if has_spawned then
|
|
||||||
has_spawned = false
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
|
|
||||||
assert(old_c)
|
assert(old_c)
|
||||||
|
|
||||||
-- Test layout
|
-- Test layout
|
||||||
|
|
Loading…
Reference in New Issue