diff options
author | John Peter Yamauchi <johnpeteryams@gmail.com> | 2019-02-19 22:04:22 -0600 |
---|---|---|
committer | John Peter Yamauchi <johnpeteryams@gmail.com> | 2019-02-19 22:04:22 -0600 |
commit | 821cf166606e82cc971f925ab7e104d76c8e1a3b (patch) | |
tree | 867198647ed7370d8dde12bd1515ab8ddf5bde50 /bin/test | |
parent | 16af7101e490ce86aef57f0ed0eb475741fa06a4 (diff) | |
download | screenplain-821cf166606e82cc971f925ab7e104d76c8e1a3b.tar.gz |
Run Python 3 test script when running Py3
Diffstat (limited to 'bin/test')
-rwxr-xr-x | bin/test | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ #!/bin/bash -nosetests --nocapture --with-doctest --doctest-tests -I ^test.py $* && \ - pep8 --ignore=E402 screenplain tests +if [[ $(python -V 2>&1) =~ "Python 2" ]] +then + nosetests --nocapture --with-doctest --doctest-tests -I ^test.py $* && \ + pep8 --ignore=E402 screenplain tests +else + python test.py && pep8 --ignore=E402 screenplain tests +fi |