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:
@@ -33,9 +33,9 @@ oneTimeSetUp() {
|
|||||||
# Test functions
|
# Test functions
|
||||||
function ln() { ln $@; }
|
function ln() { ln $@; }
|
||||||
# Test aliases
|
# Test aliases
|
||||||
alias mv="nocorrect mv"
|
alias mv="nocorrect /bin/mv"
|
||||||
alias rm="rm --option"
|
alias rm="/bin/rm --option"
|
||||||
alias sed="sed"
|
alias sed="/bin/sed"
|
||||||
# Test already wrapped commands
|
# Test already wrapped commands
|
||||||
alias cat="exec_scmb_expand_args /bin/cat"
|
alias cat="exec_scmb_expand_args /bin/cat"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user