test.py: exit on non-zero exit code
This commit is contained in:
parent
40bdac274f
commit
b864b4b388
1 changed files with 3 additions and 3 deletions
6
test.py
6
test.py
|
@ -11,7 +11,7 @@ def test_archs():
|
||||||
|
|
||||||
for arch in archs:
|
for arch in archs:
|
||||||
print(f"Testing {arch} ({upto} of {target})")
|
print(f"Testing {arch} ({upto} of {target})")
|
||||||
subprocess.run(f"cross test --features=infer-backend --target {arch}-unknown-linux-gnu".split(" "))
|
subprocess.run(f"cross test --features=infer-backend --target {arch}-unknown-linux-gnu".split(" ")).check_returncode()
|
||||||
upto += 1
|
upto += 1
|
||||||
|
|
||||||
def test_versions():
|
def test_versions():
|
||||||
|
@ -33,11 +33,11 @@ def test_versions():
|
||||||
for version in versions:
|
for version in versions:
|
||||||
for backend in backends:
|
for backend in backends:
|
||||||
print(f"[{version}, {backend}] Tests ({upto} of {target})")
|
print(f"[{version}, {backend}] Tests ({upto} of {target})")
|
||||||
subprocess.run(f"cargo +{version} test --features={backend}-backend".split(" "))
|
subprocess.run(f"cargo +{version} test --features={backend}-backend".split(" ")).check_returncode()
|
||||||
upto += 1
|
upto += 1
|
||||||
|
|
||||||
print(f"[{version}, {backend}] Scanning imgs ({upto} of {target})")
|
print(f"[{version}, {backend}] Scanning imgs ({upto} of {target})")
|
||||||
subprocess.run(f"cargo +{version} run --release --features={backend}-backend -- imgs".split(" "))
|
subprocess.run(f"cargo +{version} run --release --features={backend}-backend -- imgs".split(" ")).check_returncode()
|
||||||
upto += 1
|
upto += 1
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue