From e9908d7d4122fe1756bff953f402cd481c96a1ec Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Fri, 23 Sep 2022 11:04:14 -0500 Subject: [PATCH] Clean up more `mktemp` usage residue ...for improved cross-platform support. Following up on the work in c90ac7b. There was one more test that had mktemp in the littlecheck "shebang" and this also removes a now-unnecessary `env` prefix. --- tests/checks/features-qmark1.fish | 2 +- tests/checks/symlinks-not-overwritten.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checks/features-qmark1.fish b/tests/checks/features-qmark1.fish index 6d42c8409..91fb4c247 100644 --- a/tests/checks/features-qmark1.fish +++ b/tests/checks/features-qmark1.fish @@ -1,3 +1,3 @@ # Explicitly overriding HOME/XDG_CONFIG_HOME is only required if not invoking via `make test` -# RUN: env %fish --features '' -c 'string match --quiet "??" ab ; echo "qmarkon: $status"' +# RUN: %fish --features '' -c 'string match --quiet "??" ab ; echo "qmarkon: $status"' #CHECK: qmarkon: 0 diff --git a/tests/checks/symlinks-not-overwritten.fish b/tests/checks/symlinks-not-overwritten.fish index 0a3aa5dac..b5c6c5a27 100644 --- a/tests/checks/symlinks-not-overwritten.fish +++ b/tests/checks/symlinks-not-overwritten.fish @@ -1,5 +1,5 @@ # Explicitly overriding HOME/XDG_CONFIG_HOME is only required if not invoking via `make test` -# RUN: env HOME="$(mktemp -d)" XDG_CONFIG_HOME="$(mktemp -d)" %fish -C 'set -g fish %fish' %s +# RUN: %fish -C 'set -g fish %fish' %s mkdir -p $XDG_CONFIG_HOME/fish