From: Jeremy Kerr Date: Tue, 24 Sep 2013 06:09:06 +0000 (+0800) Subject: test/parser: Allow double-quotes in embedded config X-Git-Tag: v1.0.0~432 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=5b16418b30c17fa8c49d7a606bb8ab4bdec6f1a8 test/parser: Allow double-quotes in embedded config We need to escape any double-quotes. Signed-off-by: Jeremy Kerr --- diff --git a/test/parser/extract-config.awk b/test/parser/extract-config.awk index 9c85853..1ab68af 100644 --- a/test/parser/extract-config.awk +++ b/test/parser/extract-config.awk @@ -17,5 +17,6 @@ BEGIN { exit } { + gsub("\"", "\\\""); print "\t\"" $0 "\\n\"" }