diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2024-12-10 11:51:44 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-12-10 14:51:53 +0100 |
commit | 491b9a8575dc632d6847b300f6071180d2c777fe (patch) | |
tree | 33f4e263ba30ccdbdf7ee9725eb068b7f3ce8444 /test | |
parent | Update syscall tables (#35520) (diff) | |
download | systemd-491b9a8575dc632d6847b300f6071180d2c777fe.tar.xz systemd-491b9a8575dc632d6847b300f6071180d2c777fe.zip |
test: use mkdir -p in TEST-25-IMPORT
[ 15.896174] TEST-25-IMPORT.sh[473]: + mkdir /var/tmp/scratch
[ 15.902524] TEST-25-IMPORT.sh[519]: mkdir: cannot create directory ‘/var/tmp/scratch’: File exists
https://github.com/systemd/systemd/actions/runs/12248114409/job/34167155679?pr=35520
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/TEST-25-IMPORT.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/units/TEST-25-IMPORT.sh b/test/units/TEST-25-IMPORT.sh index b298c506e1..51c163aa70 100755 --- a/test/units/TEST-25-IMPORT.sh +++ b/test/units/TEST-25-IMPORT.sh @@ -64,10 +64,10 @@ test ! -f /var/lib/machines/testimage4.raw # → And now, let's test directory trees ← # # Set up a directory we can import -mkdir /var/tmp/scratch +mkdir -p /var/tmp/scratch mv /var/tmp/testimage.raw /var/tmp/scratch/ touch /var/tmp/scratch/anotherfile -mkdir /var/tmp/scratch/adirectory +mkdir -p /var/tmp/scratch/adirectory echo "piep" >/var/tmp/scratch/adirectory/athirdfile # Test import-fs @@ -78,7 +78,7 @@ machinectl image-status scratch # Test export-tar machinectl export-tar scratch /var/tmp/scratch.tar.gz test -f /var/tmp/scratch.tar.gz -mkdir /var/tmp/extract +mkdir -p /var/tmp/extract (cd /var/tmp/extract ; tar xzf /var/tmp/scratch.tar.gz) diff -r /var/tmp/scratch/ /var/tmp/extract/ rm -rf /var/tmp/extract |