diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-11 17:13:17 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-11 17:13:17 +0300 |
commit | 68d795158f31f349599dfb59e435ca4daf7370bc (patch) | |
tree | 7deacbc36476656dbcad8ab766bdcf2ad8f37d0c /.travis/test/track_status.sh | |
parent | Travis: prettier output (diff) | |
download | vk-scripts-68d795158f31f349599dfb59e435ca4daf7370bc.tar.gz vk-scripts-68d795158f31f349599dfb59e435ca4daf7370bc.zip |
Travis: restructure .travis/
Diffstat (limited to '')
-rwxr-xr-x | .travis/bin/track_status.sh (renamed from .travis/test/track_status.sh) | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis/test/track_status.sh b/.travis/bin/track_status.sh index 2b3e001..9aedb6b 100755 --- a/.travis/test/track_status.sh +++ b/.travis/bin/track_status.sh @@ -7,6 +7,10 @@ set -o errexit -o nounset -o pipefail +script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" +script_dir="$( cd -- "$script_dir" && pwd )" +readonly script_dir + test_users() { local log_path log_path="$( mktemp )" @@ -17,7 +21,7 @@ test_users() { rm_aux_files="$( printf -- 'rm -f -- %q %q' "$log_path" "$db_path" )" trap "$rm_aux_files" RETURN - ./.travis/test.sh bin.track_status "$@" --log "$log_path" --format csv --output "$db_path" & + "$script_dir/../lib/test.sh" bin.track_status "$@" --log "$log_path" --format csv --output "$db_path" & local pid="$!" sleep 3 |