From 73cffcfdbf68d2c62e3afa8598a238c12d147b50 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 7 Dec 2019 01:20:20 +0200 Subject: [PATCH] Oops, run() is still needed --- test/run-spec-test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/run-spec-test.py b/test/run-spec-test.py index 94a12fb..1777478 100755 --- a/test/run-spec-test.py +++ b/test/run-spec-test.py @@ -16,6 +16,7 @@ import argparse import os, sys, glob, time +import subprocess import json import re import struct @@ -85,6 +86,9 @@ def fatal(msg): print(f"{ansi.FAIL}Fatal:{ansi.ENDC} {msg}") sys.exit(1) +def run(cmd): + return subprocess.check_output(cmd, shell=True) + def filename(p): _, fn = os.path.split(p) return fn