Blame 0047-testsuite-make-report_python-os-release-test-more-ve.patch

3a204fb
From 38159845d684571ac39558015012110e0b7b24a3 Mon Sep 17 00:00:00 2001
3a204fb
From: Jakub Filak <jfilak@redhat.com>
3a204fb
Date: Mon, 2 Mar 2015 08:34:08 +0100
3a204fb
Subject: [PATCH] testsuite: make report_python os-release test more verbose
3a204fb
3a204fb
Signed-off-by: Jakub Filak <jfilak@redhat.com>
3a204fb
---
3a204fb
 tests/report_python.at | 4 ++--
3a204fb
 1 file changed, 2 insertions(+), 2 deletions(-)
3a204fb
3a204fb
diff --git a/tests/report_python.at b/tests/report_python.at
3a204fb
index 5569b1f..e71e169 100644
3a204fb
--- a/tests/report_python.at
3a204fb
+++ b/tests/report_python.at
3a204fb
@@ -23,11 +23,11 @@ if not os.path.exists("/etc/os-release"):
3a204fb
 
3a204fb
 exit_code = 0
3a204fb
 if report.getProduct_fromOSRELEASE() != report.getProduct():
3a204fb
-    print "getProduct() did not return PRODUCT from /etc/os-release"
3a204fb
+    print "getProduct('{0}') did not return PRODUCT='{1}' from /etc/os-release".format(report.getProduct(), report.getProduct_fromOSRELEASE())
3a204fb
     exit_code += 1
3a204fb
 
3a204fb
 if report.getVersion_fromOSRELEASE() != report.getVersion():
3a204fb
-    print "getVersion() did not return PRODUCT from /etc/os-release"
3a204fb
+    print "getVersion('{0}') did not return PRODUCT_VERSION='{1}' from /etc/os-release".format(report.getVersion(), report.getVersion_fromOSRELEASE())
3a204fb
     exit_code += 1
3a204fb
 
3a204fb
 sys.exit(exit_code)
3a204fb
-- 
3a204fb
2.1.0
3a204fb