Fix running test scripts without giving a path to them.
For example "cd test ; bash runCompletion [...]".
This commit is contained in:
parent
a7cd88bb67
commit
f9f49786ca
2
test/run
2
test/run
@ -31,7 +31,7 @@ set_tool() {
|
||||
}
|
||||
|
||||
|
||||
cd "${BASH_SOURCE[0]%/*}"
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
|
||||
# Loop over the arguments.
|
||||
|
@ -4,4 +4,4 @@
|
||||
# isn't initialized at that point (i.e. output of `expect' is shown on
|
||||
# stdout - `open_logs' hasn't run yet?). And running code from a library
|
||||
# file isn't probably a good idea either.
|
||||
"$BASH" "${BASH_SOURCE[0]%/*}/run" --tool completion $*
|
||||
"$BASH" "$(dirname "${BASH_SOURCE[0]}")/run" --tool completion $*
|
||||
|
@ -4,4 +4,4 @@
|
||||
# isn't initialized at that point (i.e. output of `expect' is shown on
|
||||
# stdout - `open_logs' hasn't run yet?). And running code from a library
|
||||
# file isn't probably a good idea either.
|
||||
"$BASH" "${BASH_SOURCE[0]%/*}/run" --tool unit $*
|
||||
"$BASH" "$(dirname "${BASH_SOURCE[0]}")/run" --tool unit $*
|
||||
|
Loading…
x
Reference in New Issue
Block a user