From: Razvan Becheriu Date: Tue, 14 May 2019 14:45:50 +0000 (+0300) Subject: save file as csv X-Git-Tag: Kea-1.6.0-beta~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97b9ab4bb6619c31fceed4375b9b7447c3850512;p=thirdparty%2Fkea.git save file as csv --- 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