diff options
| -rw-r--r-- | tests/test_split.sh | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_split.sh b/tests/test_split.sh index 45d9abd..c049d18 100644 --- a/tests/test_split.sh +++ b/tests/test_split.sh @@ -8,8 +8,10 @@ test_splitfits_data1() {          return 1      fi -    find . -regex '.*\.part_[0-9]+' | xargs -I'{}' cat '{}' >> streamed.fits -    if ! diff ${datafile} streamed.fits; then +    files=$(find . -regex '.*\.part_[0-9]+' | sort -V) +    cat $files > streamed.fits + +    if ! diff -q ${datafile} streamed.fits; then          return 1      fi  | 
