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.
This commit is contained in:
Martino Visintin
2017-01-27 21:41:50 +00:00
parent fc05821db6
commit 455239f594

View File

@@ -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"