File: Report-Debian-versions-in-test_pretty_print.patch

package info (click to toggle)
openscad 2021.01-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,096 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (25 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (3)
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')