[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] [PATCH] test_shellvars.aug



Updated test_shellvars.aug to work with commented settings

-- 
        __          __                
.-----.|  |_.-----.|  |--.-----.-----.
|__ --||   _|  _  ||    <|  -__|__ --|
|_____||____|_____||__|__|_____|_____|
 .----------------------------------.
(   ajs redhat com || 919.754.4187   )
 `----------------------------------'

--- /usr/share/augeas/lenses/dist/tests/test_shellvars.aug	2010-01-14 13:56:25.000000000 -0500
+++ test_shellvars.aug	2010-01-19 09:53:22.092335000 -0500
@@ -24,7 +24,8 @@
     { "HWADDR" = "ab:cd:ef:12:34:56" }
     { "IPADDR" = "172.31.0.31"
         { "export" } }
-    { "#comment" = "DHCP_HOSTNAME=host.example.com" }
+    { "DHCP_HOSTNAME" = "host.example.com" 
+      { "commented" } }
     { "NETMASK" = "255.255.255.0" }
     { "NETWORK" = "172.31.0.0" }
     { "unset"   = "ONBOOT" }
@@ -106,6 +107,17 @@
     { "2" = "v2" }
     { "3" = "v3" } }
 
+  test Shellvars.lns get "MOUNTD_PORT=892\n" = { "MOUNTD_PORT" = "892" }
+    
+  test Shellvars.lns get "# MOUNTD_PORT=892\n" =
+      { "MOUNTD_PORT" = "892"
+          { "commented" } }
+    
+  test Shellvars.lns put "MOUNTD_PORT=892\n" after clear "/MOUNTD_PORT/commented" =
+      "# MOUNTD_PORT=892\n"
+    
+  test Shellvars.lns put "# MOUNTD_PORT=892\n" after rm "/MOUNTD_PORT/commented" =
+      "MOUNTD_PORT=892\n"
 (* Local Variables: *)
 (* mode: caml       *)
 (* End:             *)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]