From 464e545c723616372bfeec8e955bf1177437fa32 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 30 Aug 2019 14:20:29 +0200 Subject: Tests: move "make test" on macOS and Linux to Python script --- build_files/utils/make_utils.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 build_files/utils/make_utils.py (limited to 'build_files/utils/make_utils.py') 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) -- cgit v1.2.3