]> www.infradead.org Git - users/hch/blktests.git/commit
blktests: Use old variable check for Bash <4.2
authorJon Derrick <jonathan.derrick@intel.com>
Fri, 3 May 2019 18:28:28 +0000 (12:28 -0600)
committerOmar Sandoval <osandov@fb.com>
Mon, 6 May 2019 21:01:52 +0000 (14:01 -0700)
commit0f8dc7346a7958a3432b92508eb8a19ed60ce609
tree2c3b8bef7da303bafd57a3c5ec5fa380c54115c3
parent09c0fe1bf86e7a3a23f6e26621ebbe964e7a2c58
blktests: Use old variable check for Bash <4.2

Bash 4.2 and above supports -v variable checks, which returns true for
set or null. Instead use an older bashism that is compatible with bash
4.1 and earlier but only returns true if the variable is set non-null.
This inherently adds a sanity check in case of null variables.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
check
common/cgroup
common/fio
common/rc
tests/meta/rc