Skip to content

Commit c578e7d

Browse files
DeviceInfracopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 875236676
1 parent c2aacf9 commit c578e7d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/java/com/google/devtools/mobileharness/shared/util/file/local/LocalFileUtil.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,9 @@ public String unzipFile(
21602160
}
21612161
commandBuilder.add("-o").add(zipFilePath);
21622162
Command command =
2163-
Command.of(commandBuilder.build()).workDir(targetDirPath /*for b/28160125 */);
2163+
Command.of(commandBuilder.build())
2164+
.workDir(targetDirPath /*for b/28160125 */)
2165+
.successExitCodes(0, 1);
21642166
if (timeout != null) {
21652167
command = command.timeout(fixed(timeout));
21662168
}
@@ -2200,7 +2202,8 @@ public String unzipFiles(String zipFilePath, List<String> fileNamesToUnzip, Stri
22002202
.add(zipFilePath)
22012203
.addAll(fileNamesToUnzip)
22022204
.build();
2203-
Command command = Command.of(cmd).workDir(targetDirPath /*for b/28160125 */);
2205+
Command command =
2206+
Command.of(cmd).workDir(targetDirPath /*for b/28160125 */).successExitCodes(0, 1);
22042207
return cmdExecutor.run(command);
22052208
} catch (MobileHarnessException e) {
22062209
if (e.getErrorId() == BasicErrorId.COMMAND_EXEC_FAIL

0 commit comments

Comments
 (0)