Skip to content

Commit

Permalink
Refactor to remove some trailing white space
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-eriksson committed Jan 7, 2021
1 parent a79cd6a commit 61f7156
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/create_backups.tests/single_backup.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 61f7156

Please sign in to comment.