diff options
author | kennyballou <kballou@onyx.boisestate.edu> | 2013-04-02 17:56:51 -0600 |
---|---|---|
committer | kennyballou <kballou@onyx.boisestate.edu> | 2013-04-02 17:56:51 -0600 |
commit | 8c7c737fb408d479b468fffb21b6a4993849b5b6 (patch) | |
tree | 991fb148d5461cd6362f5b08662c46e06dd0cc8a | |
parent | 6fe27662b36ba78a6c9774235e04fa53ad6ec322 (diff) | |
download | xnt-8c7c737fb408d479b468fffb21b6a4993849b5b6.tar.gz xnt-8c7c737fb408d479b468fffb21b6a4993849b5b6.tar.xz |
Add check for testing python2 explicitly
-rw-r--r-- | build.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -24,13 +24,15 @@ def build(): @xnt.target def test(): """Tests package""" + error_codes = [] print("Python Tests:") - ec1 = xnt.setup(["test"]) + error_codes.append(xnt.setup(["test"])) clean() - print("Python2 Tests:") - ec2 = xnt.call(["python2", "setup.py", "test"]) - clean() - return ec1 | ec2 + if xnt.in_path("python2"): + print("Python2 Tests:") + error_codes.append(xnt.call(["python2", "setup.py", "test"])) + clean() + return sum(error_codes) @xnt.target def lint(): |