diff options
author | David Robillard <d@drobilla.net> | 2023-03-31 14:17:27 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 2f490c80f9623ac2deaeb37a29fc98d01eb20e7e (patch) | |
tree | f3dcbbef79d7bf3ae0ff30768bdce69a57cfeee3 /test/test_write_error.py | |
parent | 55cb2411c1ddfe268c5d48f486f4da02470ab3d1 (diff) | |
download | serd-2f490c80f9623ac2deaeb37a29fc98d01eb20e7e.tar.gz serd-2f490c80f9623ac2deaeb37a29fc98d01eb20e7e.tar.bz2 serd-2f490c80f9623ac2deaeb37a29fc98d01eb20e7e.zip |
Factor out test runner script argument parsing
Diffstat (limited to 'test/test_write_error.py')
-rwxr-xr-x | test/test_write_error.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/test_write_error.py b/test/test_write_error.py index 35fde232..b62f981a 100755 --- a/test/test_write_error.py +++ b/test/test_write_error.py @@ -5,19 +5,14 @@ """Test errors writing to a file.""" -import argparse import sys import shlex import subprocess import os -parser = argparse.ArgumentParser(description=__doc__) +import serd_test_util as util -parser.add_argument("--serdi", default="./serdi", help="path to serdi") -parser.add_argument("--wrapper", default="", help="executable wrapper") -parser.add_argument("input", help="valid input file") - -args = parser.parse_args(sys.argv[1:]) +args = util.wrapper_args(__doc__, True) command = shlex.split(args.wrapper) + [args.serdi, args.input] if os.path.exists("/dev/full"): |