From 6571e01725718a6a7edea18b60e1c29a7c885b54 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 10 Jan 2012 16:55:57 +0100 Subject: [PATCH] Squish: Only log compile if failed or debug mode Change-Id: I266fb9b7796d810c98e642d3c7a3f682eb05bf6b Reviewed-by: Bill King --- tests/system/shared/build_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py index eda61934064..131e6ed556c 100644 --- a/tests/system/shared/build_utils.py +++ b/tests/system/shared/build_utils.py @@ -89,7 +89,10 @@ def checkCompile(): waitFor("len(str(output.plainText))>0",5000) success = str(output.plainText).endswith("exited normally.") if success: - test.log("Compile Output:\n%s" % output.plainText) + if os.getenv("SYSTEST_DEBUG") == "1": + test.log("Compile Output:\n%s" % output.plainText) + else: + test.passes("Compile successful") else: test.fail("Compile Output:\n%s" % output.plainText) return success