summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authora-e-m <alexemartyn@gmail.com>2013-12-09 00:32:36 (GMT)
committera-e-m <alexemartyn@gmail.com>2013-12-09 00:32:36 (GMT)
commit58bf7386a11d6f6fb247cf95b89bbbb2682832ca (patch)
tree83a8a46c0cd8f905e7ce26fc46b3eb49f6f269d8 /tests/test_pretty_print.py
parentb7c818bf00b5c9e23ee97ce6669eb66a9b404562 (diff)
Added --upload command line option
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 675867e..c0d35bb 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -426,6 +426,11 @@ def main():
if not builddir:
builddir = os.getcwd()
debug('build dir set to ' + builddir)
+
+ upload = False
+ if '--upload' in sys.argv:
+ upload = True
+ debug('will upload test report')
# --- End Command Line Parsing ---
@@ -446,12 +451,13 @@ def main():
debug('saving ' + html_filename + ' ' + str(len(html)) + ' bytes')
trysave(html_filename, html)
- page_url = create_page()
- if upload_html(page_url, title='OpenSCAD test results', html=html):
- share_url = page_url.partition('?')[0]
- print 'html report uploaded at', share_url
- else:
- print 'could not upload html report'
+ if upload:
+ page_url = create_page()
+ if upload_html(page_url, title='OpenSCAD test results', html=html):
+ share_url = page_url.partition('?')[0]
+ print 'html report uploaded at', share_url
+ else:
+ print 'could not upload html report'
debug('test_pretty_print complete')
contact: Jan Huwald // Impressum