[augeas-devel] [PATCH 3/5] Shellvars: add tests for semicolon handling
lutter at redhat.com
lutter at redhat.com
Thu Nov 1 23:50:26 UTC 2012
From: David Lutterkort <lutter at redhat.com>
---
lenses/tests/test_shellvars.aug | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/lenses/tests/test_shellvars.aug b/lenses/tests/test_shellvars.aug
index 21077df..d302c22 100644
--- a/lenses/tests/test_shellvars.aug
+++ b/lenses/tests/test_shellvars.aug
@@ -80,6 +80,17 @@ unset ONBOOT # We do not want this var
{ "var" = "ab"
{ "#comment" = "c" } }
+ test lns get "var=ab; #c\n" =
+ { "var" = "ab" }
+ { "#comment" = "c" }
+
+ test lns put "var=ab; #c\n" after
+ set "/#comment" "d" =
+ "var=ab; #d\n"
+
+ test lns get "var=ab;\n" =
+ { "var" = "ab" }
+
test lns get "var='ab#c'\n" =
{ "var" = "'ab#c'" }
--
1.7.7.6
More information about the augeas-devel
mailing list