зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1483730 - Return null from getFileForAdb if the adb file doesn't exit. r=jdescottes
Summary: Depends on D3463 Reviewers: jdescottes Reviewed By: jdescottes Bug #: 1483730 Differential Revision: https://phabricator.services.mozilla.com/D3464
This commit is contained in:
Родитель
e7f608e1b0
Коммит
2e06ce7f26
|
@ -216,7 +216,12 @@ async function getFileForBinary() {
|
|||
!await extractFiles()) {
|
||||
return null;
|
||||
}
|
||||
return new FileUtils.File(ADB_BINARY_PATH);
|
||||
|
||||
const file = new FileUtils.File(ADB_BINARY_PATH);
|
||||
if (!file.exists()) {
|
||||
return null;
|
||||
}
|
||||
return file;
|
||||
}
|
||||
|
||||
exports.getFileForBinary = getFileForBinary;
|
||||
|
|
|
@ -101,9 +101,7 @@ add_task(async function testNoAdbJSON() {
|
|||
await extension.unload();
|
||||
});
|
||||
|
||||
add_task({
|
||||
skip_if: () => mozinfo.os == "win" // bug 1482008
|
||||
}, async function testNoTargetBinaries() {
|
||||
add_task(async function testNoTargetBinaries() {
|
||||
const extension = ExtensionTestUtils.loadExtension({
|
||||
manifest: {
|
||||
version: (extension_version++).toString(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче