From 67350aa8a9a164e59a53f0025c2ade19859dd19c Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 27 Oct 2023 12:59:06 +0200 Subject: [PATCH] sanitize the paths added to / removed from cache --- tests/mod.nu | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/mod.nu b/tests/mod.nu index ff07660d..046f22fa 100644 --- a/tests/mod.nu +++ b/tests/mod.nu @@ -183,19 +183,19 @@ export def cache-manipulation [] { [] | save-cache $CACHE assert cache [] - add-to-cache $CACHE "foo" + add-to-cache $CACHE ("foo" | path expand | path sanitize) assert cache ["foo"] - add-to-cache $CACHE "bar" + add-to-cache $CACHE ("bar" | path expand | path sanitize) assert cache ["bar", "foo"] - add-to-cache $CACHE "baz" + add-to-cache $CACHE ("baz" | path expand | path sanitize) assert cache ["bar", "baz", "foo"] - remove-from-cache $CACHE "bar" + remove-from-cache $CACHE ("bar" | path expand | path sanitize) assert cache ["baz", "foo"] - remove-from-cache $CACHE "brr" + remove-from-cache $CACHE ("brr" | path expand | path sanitize) assert cache ["baz", "foo"] rm --recursive --verbose --force $CACHE_DIR