summaryrefslogtreecommitdiffstats
path: root/tests/test_raw_output_matches_git_on_full_repo_history
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_raw_output_matches_git_on_full_repo_history')
-rwxr-xr-xtests/test_raw_output_matches_git_on_full_repo_history6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_raw_output_matches_git_on_full_repo_history b/tests/test_raw_output_matches_git_on_full_repo_history
index f212d2f4..667cbd68 100755
--- a/tests/test_raw_output_matches_git_on_full_repo_history
+++ b/tests/test_raw_output_matches_git_on_full_repo_history
@@ -1,5 +1,9 @@
#!/bin/bash
-DELTA="./target/release/delta --no-gitconfig --raw --max-line-length 0"
+
+# if first arg provided, use it, otherwise default to release
+DELTA_BIN=${1:=./target/release/delta}
+DELTA="$DELTA_BIN --no-gitconfig --raw --max-line-length 0"
+
ANSIFILTER="./etc/bin/ansifilter"
GIT_ARGS="log --patch --stat --numstat"
diff -u <(git $GIT_ARGS | $ANSIFILTER) <(git $GIT_ARGS | $DELTA | $ANSIFILTER)