aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-runner/bin/test-runner.py.in
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-03-14 01:41:03 +0100
committerBrian Behlendorf <[email protected]>2022-04-01 17:59:18 -0700
commitcaccfc870fe17ce9bc040ed559771cd81e3c2a38 (patch)
treeca9d8aacfd967c750219a998225f99c3fd43417f /tests/test-runner/bin/test-runner.py.in
parentdf6e0f009265c92b1c6e30be66400f1e37b70f6f (diff)
tests: clean out unused/single-use/useless commands from the list
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13259
Diffstat (limited to 'tests/test-runner/bin/test-runner.py.in')
-rwxr-xr-xtests/test-runner/bin/test-runner.py.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-runner/bin/test-runner.py.in b/tests/test-runner/bin/test-runner.py.in
index 5c868d945..cb453b266 100755
--- a/tests/test-runner/bin/test-runner.py.in
+++ b/tests/test-runner/bin/test-runner.py.in
@@ -291,7 +291,7 @@ User: %s
self.result.starttime = monotonic_time()
if kmemleak:
- cmd = f'echo clear | {SUDO} tee {KMEMLEAK_FILE}'
+ cmd = f'{SUDO} sh -c "echo clear > {KMEMLEAK_FILE}"'
check_output(cmd, shell=True)
proc = Popen(privcmd, stdout=PIPE, stderr=PIPE)
@@ -305,7 +305,7 @@ User: %s
self.result.stdout, self.result.stderr = self.collect_output(proc)
if kmemleak:
- cmd = f'echo scan | {SUDO} tee {KMEMLEAK_FILE}'
+ cmd = f'{SUDO} sh -c "echo scan > {KMEMLEAK_FILE}"'
check_output(cmd, shell=True)
cmd = f'{SUDO} cat {KMEMLEAK_FILE}'
self.result.kmemleak = check_output(cmd, shell=True)
@@ -880,7 +880,7 @@ class TestRun(object):
self.outputdir, LOG_ERR)
if options.kmemleak:
- cmd = f'echo scan=0 | {SUDO} tee {KMEMLEAK_FILE}'
+ cmd = f'{SUDO} -c "echo scan=0 > {KMEMLEAK_FILE}"'
check_output(cmd, shell=True)
iteration = 0