Skip to content

Commit

Permalink
Don't run 'reprounzip graph' on 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Dec 3, 2014
1 parent dbffd2d commit 6d029d1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ def build(target, sources, args=[]):
def functional_tests(raise_warnings, interactive, run_vagrant, run_docker):
# Tests on Python < 2.7.3: need to use separate reprozip Python (with known
# working version of Python)
if sys.version_info < (2, 7, 3) and 'REPROZIP_PYTHON' not in os.environ:
sys.stderr.write("Error: using reprozip with Python %s!\n" %
sys.version.split(' ', 1)[0])
sys.exit(1)
if sys.version_info < (2, 7, 3):
bug13676 = True
if 'REPROZIP_PYTHON' not in os.environ:
sys.stderr.write("Error: using reprozip with Python %s!\n" %
sys.version.split(' ', 1)[0])
sys.exit(1)
else:
bug13676 = False

rpz = [os.environ.get('REPROZIP_PYTHON', sys.executable)]
rpuz = [os.environ.get('REPROUNZIP_PYTHON', sys.executable)]
Expand Down Expand Up @@ -137,9 +141,10 @@ def functional_tests(raise_warnings, interactive, run_vagrant, run_docker):
'bash', '-c', 'cat /etc/passwd;echo'])
check_call(rpz + ['trace', '--continue',
'sh', '-c', 'cat /etc/group;/usr/bin/id'])
check_call(rpuz + ['graph', 'graph.dot'])
check_call(rpz + ['pack'])
check_call(rpuz + ['graph', 'graph2.dot', 'experiment.rpz'])
if not bug13676:
check_call(rpuz + ['graph', 'graph.dot'])
check_call(rpuz + ['graph', 'graph2.dot', 'experiment.rpz'])

# ########################################
# 'simple' program: trace, pack, info, unpack
Expand Down

0 comments on commit 6d029d1

Please sign in to comment.