]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
save file as csv
authorRazvan Becheriu <razvan@isc.org>
Tue, 14 May 2019 14:45:50 +0000 (17:45 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 22 May 2019 16:53:22 +0000 (19:53 +0300)
src/bin/admin/tests/cql_tests.sh.in

index 02a06ab6a45dba88ab3a40754c4b05259be5d01b..2d1cb945e8a0cc5aa607d262705b25912a63afe4 100644 (file)
@@ -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