diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-05-26 12:43:21 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-05-26 12:52:49 +0200 |
commit | f406f683e9841ae8cc80f65e822334c1494faba5 (patch) | |
tree | e4496c1b912264d771eb91e33b59470b80bd855b /tests/scripts | |
parent | 92179bf1e3e920170031d4d0d17ee39d91801618 (diff) | |
download | gnutls-f406f683e9841ae8cc80f65e822334c1494faba5.tar.gz |
tests: skip x86-specific tests when not in x86tmp-reduce-cycles-in-non-x86
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/scripts')
-rw-r--r-- | tests/scripts/common.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh index 8c0e1e920f..9dae0b47b9 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -83,6 +83,18 @@ fail() { exit 1 } +exit_if_non_x86() +{ +which lscpu >/dev/null 2>&1 +if test $? = 0;then + $(which lscpu)|grep Architecture|grep x86 + if test $? != 0;then + echo "non-x86 CPU detected" + exit 0 + fi +fi +} + wait_for_port() { local ret |