Skip to content

Commit

Permalink
Merge branch 'hotfix/Pull_request_2_from_Stelljes'
Browse files Browse the repository at this point in the history
  • Loading branch information
NicMcPhee committed Aug 27, 2016
2 parents 8f3164e + 007a003 commit 22fbcc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cleaning/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ teardown() {

@test "The new archive has (some) of the right files in it" {
./big_clean.sh $little.tgz $BATS_TMPDIR
run bash -c "tar -ztf cleaned_$little.tgz | grep '/f'"
run bash -c "tar -ztf cleaned_$little.tgz | grep '/f' | sort"
[ "${lines[0]}" == "little_dir/file_1" ]
[ "${lines[1]}" == "little_dir/file_10" ]
[ "${lines[8]}" == "little_dir/file_19" ]
Expand All @@ -78,6 +78,5 @@ teardown() {
@test "big_clean.sh returns the right number of files on the big archive" {
run ./big_clean.sh $big.tgz $BATS_TMPDIR
run bash -c "tar -ztf cleaned_$big.tgz | grep '/f' | wc -l"
echo $output > /tmp/output
[ "$output" -eq $num_big_remaining_files ]
}

0 comments on commit 22fbcc2

Please sign in to comment.