From ebc0749b4360e026f52664c7847d108d7ef5904f Mon Sep 17 00:00:00 2001 From: patr0nus Date: Sat, 8 Jan 2022 14:41:31 +0800 Subject: [PATCH] Refine test skipping logic --- libnode/scripts/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnode/scripts/test.py b/libnode/scripts/test.py index 083996c..33563a2 100755 --- a/libnode/scripts/test.py +++ b/libnode/scripts/test.py @@ -1,6 +1,6 @@ import os import subprocess -import sys +import platform from . import config @@ -20,7 +20,7 @@ test_command = ["cargo", "test", "--target", config.target_triple, "-vv", "--release"] -if sys.platform == 'darwin' and config.arch == 'arm64': +if config.arch == 'arm64' and platform.processor() != 'arm': test_command += [ "--no-run" ] else: test_command += [ "--", "--nocapture" ]