diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/cli/ceph-conf/env-vs-args.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/cli/ceph-conf/env-vs-args.t b/src/test/cli/ceph-conf/env-vs-args.t new file mode 100644 index 000000000..edb42ad6d --- /dev/null +++ b/src/test/cli/ceph-conf/env-vs-args.t @@ -0,0 +1,14 @@ +# we can use CEPH_CONF to override the normal configuration file location. + $ env CEPH_CONF=from-env ceph-conf -s foo bar + did not load config file, using default settings. + .* \-1 Errors while parsing config file! (re) + .* \-1 can't open from-env: \(2\) (No such file or directory)? (re) + .* \-1 Errors while parsing config file! (re) + .* \-1 can't open from-env: \(2\) (No such file or directory)? (re) + [1] + +# command-line arguments should override environment + $ env -u CEPH_CONF ceph-conf -c from-args + global_init: unable to open config file from search list from-args + [1] + |