Skip to content

Commit

Permalink
Merge pull request #60 from amartinz/fastboot-compat
Browse files Browse the repository at this point in the history
Fastboot: improve compatibility of reboot commands
  • Loading branch information
Flohack74 authored Mar 10, 2022
2 parents ea0da8d + 2056a15 commit a07f52e
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 a07f52e

Please sign in to comment.