Skip to content

Commit

Permalink
Fix bug ares-device --capture-screen error on Apollo
Browse files Browse the repository at this point in the history
:Detailed Notes:
-  Update ares-device --capture-screen logic for apollo

:Testing Performed:
1. Checked CLI unit test
2. Checked eslint
3. Check below command
    $ares-device --capture-screen  OUTPUT_PATH
    > success

:Issues Addressed: N/A
  • Loading branch information
nham.tran committed Aug 7, 2024
1 parent 72ab903 commit ed983b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ const async = require('async'),

function _captureScreenFile(next) {
log.info("device#captureScreen()#_captureScreenFile()");
const cmd = "/bin/mkdir -p " + options.captureDirPath;
const cmd = "/bin/mkdir -p " + options.captureDirPath + " && chmod 777 " + options.captureDirPath;
options.session.run(cmd, null, null, null, function(err) {
if (err) {
return setImmediate(next, err);
Expand Down

0 comments on commit ed983b4

Please sign in to comment.