diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-01 14:55:22 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-01 19:53:45 +0200 |
commit | a3709e3709ae1afae39e69058a7cc2ac81f1ae78 (patch) | |
tree | 47ad3563cee2b0249ebd1156ec2a9ece6b5050c3 /test/hwdb-test.sh | |
parent | sysusers: look at login.defs when setting the default range to allocate users (diff) | |
download | systemd-a3709e3709ae1afae39e69058a7cc2ac81f1ae78.tar.xz systemd-a3709e3709ae1afae39e69058a7cc2ac81f1ae78.zip |
tests: when creating temp dirs, include test name in path
This makes it easier to figure out which directory we want to look at
when tests fail, and also which test left behind a directory when it
shouldn't.
Diffstat (limited to 'test/hwdb-test.sh')
-rwxr-xr-x | test/hwdb-test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hwdb-test.sh b/test/hwdb-test.sh index d12f82fa2d..8b909f7d80 100755 --- a/test/hwdb-test.sh +++ b/test/hwdb-test.sh @@ -18,7 +18,7 @@ if [ ! -x "$SYSTEMD_HWDB" ]; then exit 1 fi -D=$(mktemp --directory) +D=$(mktemp --tmpdir --directory "hwdb-test.XXXXXXXXXX") trap "rm -rf '$D'" EXIT INT QUIT PIPE mkdir -p "$D/etc/udev" ln -s "$ROOTDIR/hwdb.d" "$D/etc/udev/hwdb.d" |