aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-17 21:40:04 +0700
committerShulhan <ms@kilabit.info>2023-11-17 21:40:04 +0700
commit49f18f5fde5350545c6399823edd31ad8826fb90 (patch)
tree41906b7da6b1a8da285527a80f1308c785b14380 /testdata
parent6535427ec6de33da4c0eaa88c63318dff827b27b (diff)
downloadawwan-49f18f5fde5350545c6399823edd31ad8826fb90.tar.xz
all: move the file argument in env-set to the last argument
The "file" argument is optional, its define path to environment file. If its empty it will be set to "awwan.env" in the current directory.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/env_set_test.data10
1 files changed, 7 insertions, 3 deletions
diff --git a/testdata/env_set_test.data b/testdata/env_set_test.data
index 861a817..ec23bbc 100644
--- a/testdata/env_set_test.data
+++ b/testdata/env_set_test.data
@@ -1,8 +1,5 @@
Test input and output for EnvSet.
-<<< withEmptyFile:error
-EnvSet: empty file argument
-
<<< withEmptyKey:error
EnvSet: empty key
@@ -20,7 +17,14 @@ EnvSet: missing name in key
name = awwan
+<<< withEmptyFile
+[host]
+name = awwan
+ip_internal = 127.0.0.1
+
+
<<< withOverwriteValue
[host]
name = overwrite
+ip_internal = 127.0.0.1