From: Jason Ish Date: Fri, 10 Dec 2021 15:27:23 +0000 (-0600) Subject: datasets-06-state-long: fix file compare X-Git-Tag: suricata-6.0.5~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=790fbf6f99994f2eed857aa42e9ffd7153267095;p=thirdparty%2Fsuricata-verify.git datasets-06-state-long: fix file compare Different versions of sort will sort differently. So sort the expected data as well before comparing it with sorted output. --- diff --git a/tests/datasets-06-state-long/test.yaml b/tests/datasets-06-state-long/test.yaml index fa61d7f06..04d01fe40 100644 --- a/tests/datasets-06-state-long/test.yaml +++ b/tests/datasets-06-state-long/test.yaml @@ -12,6 +12,6 @@ command: | checks: - shell: - args: cat state.csv | sort > state-sorted.csv - - shell: - args: cmp state-sorted.csv ../expected/state.csv + args: | + cat ../expected/state.csv | sort > expected.csv + cat state.csv | sort | cmp - expected.csv