diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-24 10:23:24 +0100 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-01-24 10:23:24 +0100 |
| commit | 027f691bbb359845d9c838d70039ce710dd74e59 (patch) | |
| tree | 9fbc176cfb9a267e130ead6903a7f77f63be81c0 | |
| parent | os.sh: no need to use uname here (diff) | |
| download | config-links-027f691bbb359845d9c838d70039ce710dd74e59.tar.gz config-links-027f691bbb359845d9c838d70039ce710dd74e59.zip | |
test: fix macOS runs
| -rwxr-xr-x | test/test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index f2abfde..05c5d65 100755 --- a/test/test.sh +++ b/test/test.sh @@ -32,7 +32,9 @@ new_test() { echo ====================================================================== echo "New test: $test_name" - test_root_dir="$( mktemp --directory )" + test_root_dir="$( mktemp -d )" + # mktemp returns /var/..., which is actually in /private/var/... on macOS. + test_root_dir="$( readlink -e -- "$test_root_dir" )" test_src_dir="$test_root_dir/$src_dir_name" test_dest_dir="$test_root_dir/$dest_dir_name" test_alt_dest_dir="$test_root_dir/$alt_dest_dir_name" |
