]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/cli: Make the ceph-conf test more liberal
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 30 Jul 2019 19:43:56 +0000 (21:43 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 31 Jul 2019 10:22:39 +0000 (12:22 +0200)
The tests look for the exact error text.
But they are OS dependant, and thus on FreeBSD the output is
slightly different:
2019-07-30T19:04:16.581+0000 80bc48000 -1 parse_file: filesystem error: in file_size: No such file or directory [from-env]

This stems from the fact that different OSes use different
standard libraries: libc++ <> libstd++

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/cli/ceph-conf/env-vs-args.t

index 8e76f03656952435bdc554c081067dc4d0b43dd7..3e7f6edb6ffa65aaa5493d6fd9fd3f44a54bbc90 100644 (file)
@@ -2,9 +2,9 @@
   $ 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 parse_file: filesystem error: cannot get file size: (No such file or directory )?\[from-env\] (re)
+  .* \-1 parse_file: filesystem error: .* file.size: (No such file or directory )?\[from-env\] (re)
   .* \-1 Errors while parsing config file! (re)
-  .* \-1 parse_file: filesystem error: cannot get file size: (No such file or directory )?\[from-env\] (re)
+  .* \-1 parse_file: filesystem error: .* file.size: (No such file or directory )?\[from-env\] (re)
   [1]
 
 # command-line arguments should override environment