UMM-CSci-Systems / Command-line-introduction

An introduction to Unix command line tools
MIT License
0 stars 14 forks source link

Tests fail because of unpredictable order from `tar` #2

Closed NicMcPhee closed 8 years ago

NicMcPhee commented 8 years ago

It turns out that tar doesn't return it's files in a predictable, system independent fashion. This means that the tests for the "cleaning" part of the lab might fail even if the student has solved the problem, because the tests assume the files in the tar archive will be in a particular order.

Sorting the results of tar ztf should fix the problem.

NicMcPhee commented 8 years ago

Fixed via commit 22fbcc2 courtesy of @dstelljes.