fix(tests: menubar): ignore warning about opening applications dir in /dev/null
This commit is contained in:
parent
25dea5bd2a
commit
98e762e5f7
|
@ -27,12 +27,12 @@ end
|
||||||
-- word "error" appears in our output, the test is considered to have failed.
|
-- word "error" appears in our output, the test is considered to have failed.
|
||||||
do
|
do
|
||||||
local gdebug = require("gears.debug")
|
local gdebug = require("gears.debug")
|
||||||
local orig_error = gdebug.print_error
|
local orig_warning = gdebug.print_warning
|
||||||
function gdebug.print_error(msg)
|
function gdebug.print_warning(msg)
|
||||||
msg = tostring(msg)
|
msg = tostring(msg)
|
||||||
if (msg ~= "Error opening directory '/dev/null/.local/share/applications': Not a directory") and
|
if (not msg:match("/dev/null/.local/share/applications")) and
|
||||||
(not msg:match("No such file or directory")) then
|
(not msg:match("No such file or directory")) then
|
||||||
orig_error(msg)
|
orig_warning(msg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue