Make the integration test script work from anywhere.
This commit is contained in:
@@ -4,9 +4,7 @@ set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
cd "$DIR/../"
|
||||
|
||||
samples_dir=$(readlink -f "org_mode_samples")
|
||||
samples_dir=$(readlink -f "$DIR/../org_mode_samples")
|
||||
|
||||
function get_test_names {
|
||||
for test_file in "$@"
|
||||
@@ -23,5 +21,5 @@ function get_test_names {
|
||||
}
|
||||
|
||||
get_test_names "$@" | while read test; do
|
||||
cargo test --no-fail-fast --test test_loader "$test"
|
||||
(cd "$DIR/../" && cargo test --no-fail-fast --test test_loader "$test")
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user