]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: more detail when shell check fails
authorJason Ish <jason.ish@oisf.net>
Fri, 10 Dec 2021 18:27:11 +0000 (12:27 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 10 Dec 2021 20:22:43 +0000 (14:22 -0600)
run.py

diff --git a/run.py b/run.py
index 8b076fffeb38fb96abbcc248c06cca28e78494f9..436c259a99800571909c7234ce77fc5128ae163b 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -400,7 +400,8 @@ class ShellCheck:
                 return str(self.config["expect"]) == output.decode().strip()
             return True
         except subprocess.CalledProcessError as err:
-            raise TestError(err)
+            raise TestError("Shell command failed: {} -> {}".format(
+                self.config, err.output))
 
 class StatsCheck: