Skip to content

Commit

Permalink
Fastboot: improve compatibility of reboot commands
Browse files Browse the repository at this point in the history
Use `reboot-fastboot` and `reboot-recovery` like the already
previously implemented `reboot-bootloader`.

Change-Id: I54cf7c50cf097cf6c7cc064f2e6d448e10660e12
Signed-off-by: Alexander Martinz <[email protected]>
  • Loading branch information
amartinz committed Mar 10, 2022
1 parent ea0da8d commit 2056a15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/fastboot.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class Fastboot extends Tool {
* @returns {Promise}
*/
rebootFastboot() {
return this.exec("reboot fastboot")
return this.exec("reboot-fastboot")
.then(() => {
return;
})
Expand All @@ -229,7 +229,7 @@ export class Fastboot extends Tool {
* @returns {Promise}
*/
rebootRecovery() {
return this.exec("reboot recovery")
return this.exec("reboot-recovery")
.then(() => {
return;
})
Expand Down
4 changes: 2 additions & 2 deletions src/fastboot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 2056a15

Please sign in to comment.