about summary refs log tree commit diff stats
path: root/pkgs/by-name/lf/lf-make-map/tests
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 12:08:45 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 12:08:45 +0100
commit993c3283a9e6a00fcb6b747d54f281caf6f4b681 (patch)
tree01133013bdfc8bb582db736289ab79c322730179 /pkgs/by-name/lf/lf-make-map/tests
parentpkgs/notify-run: Append the name of the spawned command before printing (diff)
downloadnixos-config-993c3283a9e6a00fcb6b747d54f281caf6f4b681.zip
treewide: Give tempfiles descriptive names
This makes it easier to see, where each tempfile comes from.
Diffstat (limited to 'pkgs/by-name/lf/lf-make-map/tests')
-rwxr-xr-xpkgs/by-name/lf/lf-make-map/tests/cases/child_insert/test.sh2
-rwxr-xr-xpkgs/by-name/lf/lf-make-map/tests/cases/simple/test.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/by-name/lf/lf-make-map/tests/cases/child_insert/test.sh b/pkgs/by-name/lf/lf-make-map/tests/cases/child_insert/test.sh
index 90ebe1ce..efe8fe79 100755
--- a/pkgs/by-name/lf/lf-make-map/tests/cases/child_insert/test.sh
+++ b/pkgs/by-name/lf/lf-make-map/tests/cases/child_insert/test.sh
@@ -10,7 +10,7 @@
 # You should have received a copy of the License along with this program.
 # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 
-test="$(mktemp --directory)"
+test="$(mktemp --directory lf_make_map_test_XXXX)"
 
 cleanup() {
     rm --recursive "$test"
diff --git a/pkgs/by-name/lf/lf-make-map/tests/cases/simple/test.sh b/pkgs/by-name/lf/lf-make-map/tests/cases/simple/test.sh
index 6e127d28..656fd2a1 100755
--- a/pkgs/by-name/lf/lf-make-map/tests/cases/simple/test.sh
+++ b/pkgs/by-name/lf/lf-make-map/tests/cases/simple/test.sh
@@ -12,7 +12,7 @@
 
 # We need to hard code this, so that our output matches the golden sample.
 base="/tmp/tmp.DfcgjemfCG"
-test="$(mktemp --directory)"
+test="$(mktemp --directory lf_make_temp_test_XXXXX)"
 
 [ -d "$base" ] && {
     echo "$base already exists!"