1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: chrysn <chrysn@fsfe.org>
Date: Sun, 7 Jun 2015 17:16:26 +0200
Subject: Report Debian versions in test_pretty_print
The git repository the test_pretty_print.py script tries to read is
available neither at build time nor when run as openscad-testrun; this
provides the relevant information for the latter case.
Forwarded: not-needed
---
tests/test_pretty_print.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 89e5d1e..cc43918 100644
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -85,6 +85,7 @@ def ezsearch(pattern, str):
return ''
def read_gitinfo():
+ return 'Installed OpenSCAD Debian packages:\n' + subprocess.check_output(['dpkg-query', '-l', 'openscad*']).decode('utf-8')
# won't work if run from outside of branch.
try:
data = subprocess.Popen(['git', 'remote', '-v'], stdout=subprocess.PIPE).stdout.read().decode('utf-8')
|