From 6d89905190e5e94033448729908cb8dc3e13edb2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 19 Sep 2019 10:35:23 +0300 Subject: Travis: tweak test.sh output --- .travis/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis/test.sh b/.travis/test.sh index 0e26002..ad92059 100755 --- a/.travis/test.sh +++ b/.travis/test.sh @@ -21,6 +21,7 @@ test_src_dir= test_dest_dir= new_test() { + echo echo 'New test' test_root_dir="$( mktemp --directory )" @@ -30,6 +31,7 @@ new_test() { echo "Root directory: $test_root_dir" echo "Shared directory: $test_src_dir" echo "%DEST% directory: $test_dest_dir" + echo cp -r -- "$sample_src_dir_path" "$test_src_dir" cp -r -- "$sample_dest_dir_path" "$test_dest_dir" @@ -49,7 +51,9 @@ verify_output() { echo 'Actual directory structure:' echo "$actual_output" - if [ "$actual_output" != "$expected_output" ]; then + if [ "$actual_output" = "$expected_output" ]; then + echo "They match!" + else echo "The actual directory structure does not match the expected directory structure!" >&2 return 1 fi -- cgit v1.2.3