Skip to content

Commit

Permalink
Refine test skipping logic
Browse files Browse the repository at this point in the history
  • Loading branch information
branchseer committed Jan 8, 2022
1 parent d501d6e commit ebc0749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libnode/scripts/test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import subprocess
import sys
import platform

from . import config

Expand All @@ -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" ]
Expand Down

0 comments on commit ebc0749

Please sign in to comment.