commit | 02fdb9d4e20740c263622aa685a7cd99f950575a | [log] [tgz] |
---|---|---|
author | weisu <weisu@google.com> | Thu Mar 17 04:26:36 2022 +0000 |
committer | weisu <weisu@google.com> | Tue Mar 22 05:04:48 2022 +0000 |
tree | 3ff85f99bc660f589d16420c0e68217023295584 | |
parent | 4ac4b5924bb67eef2ecea03ebe75474d5f6e48d6 [diff] |
Simplify the TF argument mapping implementation Use a dict to map Atest command-line arguments to a dispatch function that generates the correpsonding TF arguments. This improves readability, reduces the number of branches, and make it easier to check if an argument is supported. Test: atest --host atest_unittests Bug: b/202790364 Change-Id: I937c7e78896ffa94344f527f2d76624fa9d10aaf