Initial commit for TF-A CI scripts
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
diff --git a/script/tf-coverity/utils.py b/script/tf-coverity/utils.py
new file mode 100644
index 0000000..f86667f
--- /dev/null
+++ b/script/tf-coverity/utils.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python3
+#
+# Copyright (c) 2019, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+import subprocess
+
+def exec_prog(prog, args=[], out=None, out_text_mode=False):
+ # Build the command line to execute
+ cmd = [ prog ] + args
+
+ # Spawn process.
+ # Note: The standard error output is captured into the same file handle as
+ # for stdout.
+ process = subprocess.Popen(cmd, stdout=out, stderr=subprocess.STDOUT,
+ universal_newlines=out_text_mode, bufsize=0)
+ print("Spawned process with PID %u" % process.pid)
+ return process