diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/test/cli/ceph-conf/env-vs-args.t | |
parent | Initial commit. (diff) | |
download | ceph-upstream/16.2.11+ds.tar.xz ceph-upstream/16.2.11+ds.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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] + |