From 23dcf91c299093f0643883f8f7259d16cc885f75 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Sun, 2 Dec 2018 00:04:26 -0800 Subject: [PATCH] scripts/RUN: don't use check_call subprocess.check_call() raises an execption and produces an ugly Python traceback on the console. It's not really needed. The cp command and Makefile already give error output. Instead we call sys.exit() with the exit status of the cp command. --- scripts/RUN | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/RUN b/scripts/RUN index 9bf1dd5..21d8deb 100755 --- a/scripts/RUN +++ b/scripts/RUN @@ -20,7 +20,7 @@ def main(): if os.environ.get("VA_ARCH") == "linux32": command = ["linux32"] + command - subprocess.check_call(command) + sys.exit(subprocess.call(command)) if __name__ == "__main__":