diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-30 15:20:29 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-30 18:57:18 +0300 |
commit | 464e545c723616372bfeec8e955bf1177437fa32 (patch) | |
tree | 65e8b8f1b5d25ad761a364e19335940542d91690 /build_files/utils/make_utils.py | |
parent | e218d8c24bfbd5384e040417e533ede96c4e831b (diff) |
Tests: move "make test" on macOS and Linux to Python script
Diffstat (limited to 'build_files/utils/make_utils.py')
-rwxr-xr-x | build_files/utils/make_utils.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build_files/utils/make_utils.py b/build_files/utils/make_utils.py new file mode 100755 index 00000000000..98536879b91 --- /dev/null +++ b/build_files/utils/make_utils.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 +# +# Utility functions for make update and make tests. + +import subprocess +import sys + +def call(cmd): + print(" ".join(cmd)) + + # Flush to ensure correct order output on Windows. + sys.stdout.flush() + sys.stderr.flush() + + retcode = subprocess.call(cmd) + if retcode != 0: + sys.exit(retcode) |