diff options
Diffstat (limited to 'tests/scripts/common.sh')
-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 5addc9cbc5..4615770f6b 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -95,6 +95,18 @@ if test $? = 0;then fi } +exit_if_non_padlock() +{ +which lscpu >/dev/null 2>&1 +if test $? = 0;then + $(which lscpu)|grep Flags|grep phe + if test $? != 0;then + echo "non-Via padlock CPU detected" + exit 0 + fi +fi +} + wait_for_port() { local ret |