nixpkgs/pkgs/by-name/ju/just/fix-just-path-in-tests.patch
2024-06-06 17:05:21 +02:00

21 lines
418 B
Diff

diff --git a/tests/completions/just.bash b/tests/completions/just.bash
index 6d5c12c..13bff87 100755
--- a/tests/completions/just.bash
+++ b/tests/completions/just.bash
@@ -17,11 +17,13 @@ reply_equals() {
fi
}
+just() {
+ cargo run -- "$@"
+}
+
# --- Initial Setup ---
source "$1"
cd tests/completions
-cargo build
-PATH="$(git rev-parse --show-toplevel)/target/debug:$PATH"
exit_code=0
# --- Tests ---