diff options
| author | xebd <xeb@mail.ru> | 2022-09-12 10:56:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-12 10:56:47 +0300 |
| commit | 28fe4de9441aa9d0c42c010e8eef5b1a19122c9d (patch) | |
| tree | ecefcafbeb9c9610ed3cf8c30a238b9168bba3bb /tests/common/process.py | |
| parent | 25c72614bf8106b0e4f71e2bce70514b03858463 (diff) | |
| parent | 127b1de95923fccdfdc892c20f931d364e099f4b (diff) | |
| download | accel-ppp-28fe4de9441aa9d0c42c010e8eef5b1a19122c9d.tar.gz accel-ppp-28fe4de9441aa9d0c42c010e8eef5b1a19122c9d.zip | |
Merge pull request #61 from svlobanov/tests2
add tests and ci workflow for running tests
Diffstat (limited to 'tests/common/process.py')
| -rw-r--r-- | tests/common/process.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common/process.py b/tests/common/process.py new file mode 100644 index 0000000..e0c6136 --- /dev/null +++ b/tests/common/process.py @@ -0,0 +1,7 @@ +from subprocess import Popen, PIPE + +def run(command): + process = Popen(command, stdout=PIPE, stderr=PIPE) + (out, err) = process.communicate() + exit_code = process.wait() + return (exit_code, out.decode("utf-8"), err.decode("utf-8"))
\ No newline at end of file |
