We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d91ddd7 + eaca44e commit b2467c8Copy full SHA for b2467c8
hack/test-templates.sh
@@ -192,10 +192,11 @@ if [ "$got" != "$expected" ]; then
192
fi
193
194
INFO "Testing limactl copy command"
195
-tmpfile="$HOME/lima-hostname"
+tmpdir="$(mktemp -d "${TMPDIR:-/tmp}"/lima-test-templates.XXXXXX)"
196
+defer "rm -rf \"$tmpdir\""
197
+tmpfile="$tmpdir/lima-hostname"
198
rm -f "$tmpfile"
199
limactl cp "$NAME":/etc/hostname "$tmpfile"
-defer "rm -f \"$tmpfile\""
200
expected="$(limactl shell "$NAME" cat /etc/hostname)"
201
got="$(cat "$tmpfile")"
202
INFO "/etc/hostname: expected=${expected}, got=${got}"
0 commit comments