Skip to content

Commit

Permalink
Use bourne shell semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
brianv0 committed Sep 21, 2018
1 parent 681d1af commit 74db234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/sconsUtils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ def runPythonTests(self, pyList):
@printf "%s\\n" 'running global pytest... ';
@({2} TRAVIS=1 {0} {1}); \
export rc="$?"; \
if [[ $$rc == 0 ]]; then \
if [ "$$rc" -eq 0 ]; then \
echo "Global pytest run completed successfully"; \
cp ${{TARGET}} ${{TARGET}}.all || true; \
cp ${{TARGET}}.out ${{TARGET}}.out.all || true; \
elif [[ $$rc == 5 ]]; then \
elif [ "$$rc" -eq 5 ]; then \
echo "Global pytest run completed successfully - no tests ran"; \
mv ${{TARGET}}.all ${{TARGET}} || true; \
mv ${{TARGET}}.out.all ${{TARGET}}.out || true; \
Expand Down

0 comments on commit 74db234

Please sign in to comment.