From 97b9ab4bb6619c31fceed4375b9b7447c3850512 Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Tue, 14 May 2019 17:45:50 +0300 Subject: [PATCH] save file as csv --- src/bin/admin/tests/cql_tests.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/admin/tests/cql_tests.sh.in b/src/bin/admin/tests/cql_tests.sh.in index 02a06ab6a4..2d1cb945e8 100644 --- a/src/bin/admin/tests/cql_tests.sh.in +++ b/src/bin/admin/tests/cql_tests.sh.in @@ -354,7 +354,7 @@ cql_unused_subnet_id_test() { assert_eq 0 $? "insert hosts failed, expected exit code: %d, actual: %d" # sort data so we can compare - cat $export_file | grep "|" | sort -V > $sorted_file + cat $export_file | grep "|" | sort -V | tr -d " " | sed 's/|/,/g' > $sorted_file # Compare the dump output to reference file, they should be identical. cmp -s $sorted_file $ref_file -- 2.47.2