diff options
author | Raphael Herouart <rherouart@google.com> | 2024-02-21 11:59:30 +0000 |
---|---|---|
committer | Raphaël Hérouart <rherouart@google.com> | 2024-02-21 12:01:44 +0000 |
commit | 9f0d22ed9feec89bb25467deb04f00a734088154 (patch) | |
tree | 75068c380f46a9c4684df3d642e4a1a3ecbd363d | |
parent | 95d6ef55262d42fec96df265f209f1965e6e1eae (diff) | |
download | aosp-9f0d22ed9feec89bb25467deb04f00a734088154.tar.gz |
scripts: Flags Should not apply to all commands
Need Flag added to one command affects all commands before this fix
Bug: 314130383
Test: Build.py then check test-map.json
Change-Id: Iea4e64ab0afe1991c77a0f3735ce408156083a44
-rwxr-xr-x | scripts/trusty_build_config.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/trusty_build_config.py b/scripts/trusty_build_config.py index 142bea8..ca8b591 100755 --- a/scripts/trusty_build_config.py +++ b/scripts/trusty_build_config.py @@ -114,7 +114,7 @@ class TrustyHostTest(TrustyTest): class TrustyAndroidTest(TrustyTest): """Stores a test name and command to run inside Android""" - def __init__(self, name, command, need=TrustyPortTestFlags(), + def __init__(self, name, command, need=None, port_type=PortType.TEST, enabled=True, nameprefix="", runargs=(), timeout=None): nameprefix = nameprefix + "android-test:" @@ -125,7 +125,10 @@ class TrustyAndroidTest(TrustyTest): cmd += list(runargs) super().__init__(nameprefix + name, cmd, enabled, port_type) self.shell_command = command - self.need = need + if need: + self.need = need + else: + self.need = TrustyPortTestFlags() def needs(self, **need): self.need.set(**need) |