From 8225c761bb911d2c970cb73ba7b527a1002a22db Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 13 Jul 2020 22:49:34 -0400 Subject: Fail if output is different --- tests/test_split.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/test_split.sh b/tests/test_split.sh index 562876a..45d9abd 100644 --- a/tests/test_split.sh +++ b/tests/test_split.sh @@ -8,6 +8,11 @@ test_splitfits_data1() { return 1 fi + find . -regex '.*\.part_[0-9]+' | xargs -I'{}' cat '{}' >> streamed.fits + if ! diff ${datafile} streamed.fits; then + return 1 + fi + return 0 } -- cgit