diff options
author | jahinimtiaz <jahinimtiaz@google.com> | 2024-04-02 18:54:31 +0000 |
---|---|---|
committer | Jahin Imtiaz <jahinimtiaz@google.com> | 2024-04-02 20:31:44 +0000 |
commit | bb67948841c8ae359e6098a612caa6dca5f3cbcc (patch) | |
tree | ad46a48e7a7c928880c97553720669047cab2d84 | |
parent | 1f261f6e84624f49990cccce7e995c25ba5a334e (diff) | |
download | tradefederation-bb67948841c8ae359e6098a612caa6dca5f3cbcc.tar.gz |
Apply other flags even if one flag throw exception
Bug: 332524762
Test: presubmit
Change-Id: I138c5d0429f2fccc40d47a8e02b6e5a8d163b066
-rw-r--r-- | src/com/android/tradefed/command/CommandScheduler.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/tradefed/command/CommandScheduler.java b/src/com/android/tradefed/command/CommandScheduler.java index 3f4b8e0ad..988d1a726 100644 --- a/src/com/android/tradefed/command/CommandScheduler.java +++ b/src/com/android/tradefed/command/CommandScheduler.java @@ -635,9 +635,9 @@ public class CommandScheduler extends Thread implements ICommandScheduler, IComm } // Set experimental flags if (config.getCommandOptions().isExperimentEnabled()) { - try { - for (Map.Entry<String, String> entry : - config.getCommandOptions().getExperimentalFlags().entrySet()) { + for (Map.Entry<String, String> entry : + config.getCommandOptions().getExperimentalFlags().entrySet()) { + try { String optionName = entry.getKey(); String optionValue = entry.getValue(); // Support map experiments, where optionValue is a key=value pair @@ -651,10 +651,10 @@ public class CommandScheduler extends Thread implements ICommandScheduler, IComm } mInvocationContext.addInvocationAttribute( "experiment:" + optionName, optionValue); + } catch (ConfigurationException e) { + CLog.e("Configuration Exception caught while setting experimental flags."); + CLog.e(e); } - } catch (ConfigurationException e) { - CLog.e("Configuration Exception caught while setting experimental flags."); - CLog.e(e); } } mStartTime = System.currentTimeMillis(); |