This patch adds the command run to the reported message when a valgrind
failure is detected. This makes reproducing the failure outside of the
test suite easier, for easier diagnosis of what problem is occurring.

Signed-off-by: Steve Beattie <st...@nxnw.org>
---
 parser/tst/valgrind_simple.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/parser/tst/valgrind_simple.py
===================================================================
--- a/parser/tst/valgrind_simple.py
+++ b/parser/tst/valgrind_simple.py
@@ -72,7 +72,7 @@ class AAParserValgrindTests(testlib.AATe
         command.append(testname)
         rc, output = self.run_cmd(command, timeout=120)
         self.assertNotIn(rc, failure_rc,
-                    "valgrind returned error code %d, gave the following 
output\n%s" % (rc, output))
+                    "valgrind returned error code %d, gave the following 
output\n%s\ncommand run: %s" % (rc, output, " ".join(command)))
 
 
 def find_testcases(testdir):


-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to