summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Herouart <rherouart@google.com>2024-02-16 04:55:26 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-02-16 04:55:26 +0000
commit730c2b0b4fd130e8852a6af1d9cb5e43869a4863 (patch)
tree5d1da2bbd284af8d9998f0cfccbff5f35f2b2095
parenta09f9d4ec107bd5762962c709f9bb85b79037614 (diff)
parent5fc18a0723f459b82553c5d1687af1d115bff0df (diff)
downloadaosp-730c2b0b4fd130e8852a6af1d9cb5e43869a4863.tar.gz
scripts: [Bench] Skip benchmarks on QEMU am: 5fc18a0723
Original change: https://android-review.googlesource.com/c/trusty/vendor/google/aosp/+/2897841 Change-Id: I0699cc087a7409993bc7af9d9cd54d6bbdadb7d7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rwxr-xr-xscripts/run_tests.py39
1 files changed, 22 insertions, 17 deletions
diff --git a/scripts/run_tests.py b/scripts/run_tests.py
index f554314..2c08a26 100755
--- a/scripts/run_tests.py
+++ b/scripts/run_tests.py
@@ -38,7 +38,7 @@ from enum import Enum
from typing import Optional
from collections import namedtuple
-from trusty_build_config import TrustyTest, TrustyCompositeTest
+from trusty_build_config import PORT_TYPE, TrustyTest, TrustyCompositeTest
from trusty_build_config import TrustyRebootCommand, TrustyHostTest
from trusty_build_config import TrustyAndroidTest, TrustyBuildConfig
@@ -333,23 +333,28 @@ def run_tests(
break
case TrustyTest():
- if isinstance(test, TrustyAndroidTest):
- print_test_command(test.name, [test.shell_command])
- else:
- # port tests are identified by their port name, no command
- print_test_command(test.name)
-
- if not test_env:
- test_env = load_test_environment()
- if test_env:
- if not test_runner:
- test_runner = test_env.init(android=build_config.android,
- disable_rpmb=disable_rpmb,
- verbose=verbose,
- debug_on_error=debug_on_error)
- status = test_env.run_test(test_runner, cmd)
- else:
+ # Benchmark runs on QEMU are meaningless and take a lot of CI time
+ # One can still run the bootport test manually if desired
+ if test.port_type == PORT_TYPE.BENCHMARK:
ignore_tests = True
+ else:
+ if isinstance(test, TrustyAndroidTest):
+ print_test_command(test.name, [test.shell_command])
+ else:
+ # port tests are identified by their port name, no command
+ print_test_command(test.name)
+
+ if not test_env:
+ test_env = load_test_environment()
+ if test_env:
+ if not test_runner:
+ test_runner = test_env.init(android=build_config.android,
+ disable_rpmb=disable_rpmb,
+ verbose=verbose,
+ debug_on_error=debug_on_error)
+ status = test_env.run_test(test_runner, cmd)
+ else:
+ ignore_tests = True
case TrustyRebootCommand() if parent_test:
assert isinstance(parent_test, TrustyCompositeTest)
if test_env: