tests: use uname -s to check for Linux

Use uname -s to check for Linux rather than uname -o, which doesn't
seem to be supported on OpenBSD.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2017-10-11 14:16:29 -04:00 committed by Stefan Berger
parent 27aad7283c
commit 415bf5563d

View File

@ -1,7 +1,7 @@
# For the license, see the LICENSE file in the root directory.
if ! [[ "$(uname -o)" =~ Linux ]]; then
if ! [[ "$(uname -s)" =~ Linux ]]; then
echo "Need Linux to run test with CUSE interface."
exit 77
fi