From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/test/cli/ceph-conf/env-vs-args.t | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/cli/ceph-conf/env-vs-args.t (limited to 'src/test/cli/ceph-conf/env-vs-args.t') 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] + -- cgit v1.2.3