diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-02-02 18:35:13 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-02-02 18:37:13 +0100 |
commit | 6e595f7cc304af5cef6c33d70928e4948f6d9bcb (patch) | |
tree | 0da5e53171b1da8c3461254d0b550b0a1437fd0e | |
parent | move unit tests to test/unit/ (diff) | |
download | config-links-6e595f7cc304af5cef6c33d70928e4948f6d9bcb.tar.gz config-links-6e595f7cc304af5cef6c33d70928e4948f6d9bcb.zip |
test/unit: fix path to links-* tools
Diffstat (limited to '')
-rwxr-xr-x | test/unit/test.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/unit/test.sh b/test/unit/test.sh index e28f112..c7645ea 100755 --- a/test/unit/test.sh +++ b/test/unit/test.sh @@ -10,6 +10,9 @@ readonly script_dir script_name="$( basename -- "${BASH_SOURCE[0]}" )" readonly script_name +root_dir="$( git -C "$script_dir" rev-parse --show-toplevel )" +readonly root_dir + readonly src_dir_name='src' readonly dest_dir_name='dest' readonly alt_dest_dir_name='alt_dest' @@ -63,15 +66,15 @@ call_bin_script() { } call_update() { - call_bin_script "$script_dir/../links-update" "$@" + call_bin_script "$root_dir/links-update" "$@" } call_remove() { - call_bin_script "$script_dir/../links-remove" + call_bin_script "$root_dir/links-remove" } call_chmod() { - call_bin_script "$script_dir/../links-chmod" "$@" + call_bin_script "$root_dir/links-chmod" "$@" } verify_output() { |