From 2056a1566bec945a20b2a80fe7396651d1f84f7a Mon Sep 17 00:00:00 2001 From: Alexander Martinz Date: Thu, 10 Mar 2022 16:35:26 +0100 Subject: [PATCH] Fastboot: improve compatibility of reboot commands Use `reboot-fastboot` and `reboot-recovery` like the already previously implemented `reboot-bootloader`. Change-Id: I54cf7c50cf097cf6c7cc064f2e6d448e10660e12 Signed-off-by: Alexander Martinz --- src/fastboot.js | 4 ++-- src/fastboot.spec.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fastboot.js b/src/fastboot.js index ab6c353..a55cea0 100644 --- a/src/fastboot.js +++ b/src/fastboot.js @@ -215,7 +215,7 @@ export class Fastboot extends Tool { * @returns {Promise} */ rebootFastboot() { - return this.exec("reboot fastboot") + return this.exec("reboot-fastboot") .then(() => { return; }) @@ -229,7 +229,7 @@ export class Fastboot extends Tool { * @returns {Promise} */ rebootRecovery() { - return this.exec("reboot recovery") + return this.exec("reboot-recovery") .then(() => { return; }) diff --git a/src/fastboot.spec.js b/src/fastboot.spec.js index 995e10b..8a46e9f 100644 --- a/src/fastboot.spec.js +++ b/src/fastboot.spec.js @@ -275,7 +275,7 @@ describe("Fastboot module", function () { stubExec(); const fastboot = new Fastboot(); return fastboot.rebootFastboot().then(r => { - expectArgs("reboot fastboot"); + expectArgs("reboot-fastboot"); }); }); it("should reject if rebooting fails", function (done) { @@ -295,7 +295,7 @@ describe("Fastboot module", function () { stubExec(); const fastboot = new Fastboot(); return fastboot.rebootRecovery().then(r => { - expectArgs("reboot recovery"); + expectArgs("reboot-recovery"); }); }); it("should reject if rebooting fails", function (done) {