From 61f71569556b35d84b17959e28c7b4dd2395aa24 Mon Sep 17 00:00:00 2001 From: Christian Eriksson Date: Thu, 7 Jan 2021 16:00:08 +0100 Subject: [PATCH] Refactor to remove some trailing white space --- tests/create_backups.tests/single_backup.test.sh | 2 +- tests/dry_run.tests/date_restore_after_delete_dry_run.test.sh | 2 +- .../restore_backups.tests/specific_restore_after_delete.test.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/create_backups.tests/single_backup.test.sh b/tests/create_backups.tests/single_backup.test.sh index 76ecf66..df973c6 100755 --- a/tests/create_backups.tests/single_backup.test.sh +++ b/tests/create_backups.tests/single_backup.test.sh @@ -52,7 +52,7 @@ test_results="$test_results $(assert_is_link "$result_dir/latest")" # and the latest backup has the expected content has_same_content=$(assert_dirs_equal "$result_dir/latest" "$test_dir/single_backup.expected") -test_results="$test_results $has_same_content" +test_results="$test_results $has_same_content" echo "single_backup.test.sh\nRESULTS:" echo "$(asserts_to_text "$test_results")" diff --git a/tests/dry_run.tests/date_restore_after_delete_dry_run.test.sh b/tests/dry_run.tests/date_restore_after_delete_dry_run.test.sh index efe832c..4ff97c8 100755 --- a/tests/dry_run.tests/date_restore_after_delete_dry_run.test.sh +++ b/tests/dry_run.tests/date_restore_after_delete_dry_run.test.sh @@ -77,7 +77,7 @@ test_results="$test_results $(assert_non_empty_string "$found_later_removed")" found_new_file=$(echo "$output" | grep -e "dir2/sub_dir/new-file" -e "sub_dir/new-dir/a_new_file") test_results="$test_results $(assert_empty_string "$found_new_file")" -# AND the backup directory is not restored +# AND the backup directory is not restored test_results="$test_results $(assert_no_path "$root_copy")" # AND the first backup is untouched diff --git a/tests/restore_backups.tests/specific_restore_after_delete.test.sh b/tests/restore_backups.tests/specific_restore_after_delete.test.sh index d476ae9..ecd858b 100755 --- a/tests/restore_backups.tests/specific_restore_after_delete.test.sh +++ b/tests/restore_backups.tests/specific_restore_after_delete.test.sh @@ -56,7 +56,7 @@ cd ../.. rm -r $source_root # WHEN we restore the backup -./blubee -b "$backup_json" -c "$config_path" -n "$name_two" restore +./blubee -b "$backup_json" -c "$config_path" -n "$name_two" restore # THEN the restored source directory has the expected files, content and structure test_results=$(assert_dirs_equal "$source_root" "$test_dir/specific_restore_after_delete.expected")