numam-spdk/test/json_config
Michal Berger 8109f45e1d test/json_config: Fix string notify_get_types is compared with
The $enabled_types consisted of a newline, two tabs and a trailing
space. In that form it was checked against a string that consisted
of array items returned in a form of:

foo
bar

The check initially was failing since plain [ was splitting these
strings into multiple words without proper quoting in place. This
could be seen in the build log:

  line 52: [: too many arguments

This is fixed by replacing [ with [[ and using proper quoting on the
rhs of the expression.

Additionally, $enabled_types is now converted to an array to make
the comparision more natural without worrying about the whitespaces.

Change-Id: I6e3e539f36567443b36327f3bcc083de387b8474
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1864
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2020-04-22 09:23:02 +00:00
..
alias_rpc subsystem/accel: add entry point for .write_config_json 2020-02-18 08:05:34 +00:00
clear_config.py global: rename copy to accel 2020-02-18 08:05:34 +00:00
config_filter.py subsystem/accel: add entry point for .write_config_json 2020-02-18 08:05:34 +00:00
json_config.sh test/json_config: Fix string notify_get_types is compared with 2020-04-22 09:23:02 +00:00
json_diff.sh test/json_config: Freebsd supports python3 now so use it 2020-01-17 14:07:39 +00:00