summaryrefslogtreecommitdiffstats
path: root/src/test/cli/ceph-conf/env-vs-args.t
blob: edb42ad6d064fc57bef8da6947388d0ec748961a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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]