X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftest%2Fcli%2Fceph-conf%2Fenv-vs-args.t;fp=src%2Fceph%2Fsrc%2Ftest%2Fcli%2Fceph-conf%2Fenv-vs-args.t;h=d14c483d37638942a1ecd2de40ca38408e963914;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/test/cli/ceph-conf/env-vs-args.t b/src/ceph/src/test/cli/ceph-conf/env-vs-args.t new file mode 100644 index 0000000..d14c483 --- /dev/null +++ b/src/ceph/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 + .* \-1 did not load config file, using default settings. (re) + .* \-1 Errors while parsing config file! (re) + .* \-1 parse_file: cannot open from-env: \(2\) No such file or directory (re) + .* \-1 Errors while parsing config file! (re) + .* \-1 parse_file: cannot 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] +