diff --git a/test/README.testsuite b/test/README.testsuite index 9070d0c60c..695cce15aa 100644 --- a/test/README.testsuite +++ b/test/README.testsuite @@ -99,7 +99,7 @@ INTERACTIVE_DEBUG=1 the test, etc.) The kernel and initrd can be specified with $KERNEL_BIN and $INITRD. (Fedora's -or Debian's default kernel path and initrd are used by default) +or Debian's default kernel path and initrd are used by default.) A script will try to find your qemu binary. If you want to specify a different one with $QEMU_BIN. @@ -107,12 +107,12 @@ one with $QEMU_BIN. Debugging the qemu image ======================== -If you want to log in the testsuite virtual machine, you can specify additional -kernel command line parameter with $KERNEL_APPEND and then log in as root. +If you want to log in the testsuite virtual machine, use INTERACTIVE_DEBUG=1 +and log in as root: -$ sudo make -C test/TEST-01-BASIC KERNEL_APPEND="systemd.unit=multi-user.target" run +$ sudo make -C test/TEST-01-BASIC INTERACTIVE_DEBUG=1 run -Root password is empty. +The root password is empty. Ubuntu CI ========= diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh index acd03d2fdf..de00f59d26 100755 --- a/test/units/testsuite-58.sh +++ b/test/units/testsuite-58.sh @@ -95,12 +95,13 @@ testcase_basic() { local defs imgs output local loop volume - defs="$(runas testuser mktemp --directory "/tmp/test-repart.XXXXXXXXXX")" - imgs="$(runas testuser mktemp --directory "/var/tmp/test-repart.XXXXXXXXXX")" + defs="$(mktemp --directory "/tmp/test-repart.defs.XXXXXXXXXX")" + imgs="$(runas testuser mktemp --directory "/var/tmp/test-repart.imgs.XXXXXXXXXX")" # shellcheck disable=SC2064 trap "rm -rf '$defs' '$imgs'" RETURN + chmod a+rx "$defs" - # 1. create an empty image + echo "*** 1. create an empty image ***" runas testuser systemd-repart --empty=create \ --size=1G \ @@ -116,23 +117,23 @@ unit: sectors first-lba: 2048 last-lba: 2097118" - # 2. Testing with root, root2, home, and swap + echo "*** 2. Testing with root, root2, home, and swap ***" - runas testuser tee "$defs/root.conf" <"$defs/verity.openssl.cnf" <"$defs/verity.openssl.cnf" <