From 51e4fb6b9f43c267e9ea24ea4a3978d9bc9fd1e0 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 17 Mar 2015 19:18:48 -0400 Subject: [PATCH] Fix the testr init subprocess call The subprocess.call() to run testr init if the .testrepository dir hasn't been created yet was setting passing the actual call assuming shell=True, which it wasn't. This commit fixes this oversight to make the call actually work. --- os_testr/os_testr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_testr/os_testr.py b/os_testr/os_testr.py index bcf640d..8c74d2e 100755 --- a/os_testr/os_testr.py +++ b/os_testr/os_testr.py @@ -135,7 +135,7 @@ def main(): exit(3) exclude_regex = construct_regex(opts.blacklist_file, opts.regex) if not os.path.isdir('.testrepository'): - subprocess.call('testr init') + subprocess.call(['testr', 'init']) if not opts.no_discover and not opts.pdb: exit(call_testr(exclude_regex, opts.subunit, opts.pretty, opts.list, opts.slowest))