test/parser: Allow double-quotes in embedded config
authorJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 06:09:06 +0000 (14:09 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 06:09:06 +0000 (14:09 +0800)
We need to escape any double-quotes.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
test/parser/extract-config.awk

index 9c858532282cfc3d2342ce2f89a5f4c5e5de2da4..1ab68afa1bc91109fc3dba9fff149761ba2570d6 100644 (file)
@@ -17,5 +17,6 @@ BEGIN {
        exit
 }
 {
+       gsub("\"", "\\\"");
        print "\t\"" $0 "\\n\""
 }