test: minor, replace 'texec sh -c' -> 'run'

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-02-05 11:22:26 +01:00
1 parent 5a9cafc2fc
commit b6769356b2
21 files changed
+170 -165

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ test_teardown()
say "Test done $(date)"
say "Running test teardown."
texec rm -f "$FINIT_CONF" "/tmp/post"
run "rm -f $FINIT_CONF" "/tmp/post"
}
# shellcheck source=/dev/null
@@ -51,7 +51,7 @@ test_one()
say "Verify bar is restarted with foo is ..."
pid=$(texec initctl |grep bar | awk '{print $1;}')
texec initctl restart foo
run "initctl restart foo"
assert "bar is restarted" "$(texec initctl |grep bar | awk '{print $1;}')" != "$pid"
# Wait for spice to be stolen by the Harkonnen