From 455239f59406ca39ab731812867a23b23001b218 Mon Sep 17 00:00:00 2001 From: Martino Visintin Date: Fri, 27 Jan 2017 21:41:50 +0000 Subject: [PATCH] make tests independent of bin locations On my system (Arch Linux), the commands {mv,rm,sed} live under `/usr/bin`, not under `/bin`. So the tests were failing. This commit hard-codes the initial paths to make the tests independent on their real paths. --- test/lib/git/shell_shortcuts_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/git/shell_shortcuts_test.sh b/test/lib/git/shell_shortcuts_test.sh index b826a0b..76d23fd 100755 --- a/test/lib/git/shell_shortcuts_test.sh +++ b/test/lib/git/shell_shortcuts_test.sh @@ -33,9 +33,9 @@ oneTimeSetUp() { # Test functions function ln() { ln $@; } # Test aliases - alias mv="nocorrect mv" - alias rm="rm --option" - alias sed="sed" + alias mv="nocorrect /bin/mv" + alias rm="/bin/rm --option" + alias sed="/bin/sed" # Test already wrapped commands alias cat="exec_scmb_expand_args /bin/cat"