From 083462e0c1df1d042943159fdc3e651082d78bde Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Feb 2019 10:21:18 +0100 Subject: [PATCH] naughty test: Warn about missing dependencies Signed-off-by: Uli Schlachter --- tests/test-naughty-legacy.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test-naughty-legacy.lua b/tests/test-naughty-legacy.lua index 5a0ad5f3b..99d0a83e1 100644 --- a/tests/test-naughty-legacy.lua +++ b/tests/test-naughty-legacy.lua @@ -44,7 +44,14 @@ check_cmd() -- Can't test anything of value the documentation example tests don't already -- hit. -if not has_cmd_send then require("_runner").run_steps {}; return end +if not has_cmd_send then + require("gears.debug").print_warning("Did not find dbus-send, skipping test") + require("_runner").run_steps {} + return +end +if not has_cmd_notify then + require("gears.debug").print_warning("Did not find notify-send, skipping some tests") +end local active, destroyed, reasons, counter = {}, {}, {}, 0