summaryrefslogtreecommitdiff
path: root/test/TEST-13-NSPAWN-SMOKE
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-31 11:23:21 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-31 14:37:20 +0200
commite00fca8c2eadc51396fbc97c867b8506878e24c9 (patch)
treef9b8f83539999390873f96831a10552bf584df63 /test/TEST-13-NSPAWN-SMOKE
parent68a7705e351596203a738ca666030dc747077051 (diff)
downloadsystemd-e00fca8c2eadc51396fbc97c867b8506878e24c9.tar.gz
TEST-13-*: remove containers created in test before running the test
The test would fail when run again from the same image. So let's rename the stuff we create to be more unique, and remove it before running the test. (Removing it after would be more elegant, but it's hard to make sure that everything is removed when things fail halfway. Cleanup *before* tests is much more rebust.)
Diffstat (limited to 'test/TEST-13-NSPAWN-SMOKE')
-rwxr-xr-xtest/TEST-13-NSPAWN-SMOKE/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/TEST-13-NSPAWN-SMOKE/test.sh b/test/TEST-13-NSPAWN-SMOKE/test.sh
index c777c166f7..4a08cfd4ec 100755
--- a/test/TEST-13-NSPAWN-SMOKE/test.sh
+++ b/test/TEST-13-NSPAWN-SMOKE/test.sh
@@ -15,8 +15,8 @@ test_create_image() {
setup_basic_environment
mask_supporting_services
- ../create-busybox-container $initdir/nc-container
- initdir="$initdir/nc-container" dracut_install nc ip
+ ../create-busybox-container $initdir/testsuite-13.nc-container
+ initdir="$initdir/testsuite-13.nc-container" dracut_install nc ip
)
}