Tests: move "make test" on macOS and Linux to Python script

This commit is contained in:
2019-08-30 14:20:29 +02:00
parent e218d8c24b
commit 464e545c72
4 changed files with 50 additions and 14 deletions

17
build_files/utils/make_utils.py Executable file
View File

@@ -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)