Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-paulo-parity committed Sep 17, 2021
1 parent 17de0a0 commit 00b0656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ handle_exec() {
cd \"$install_location\" &&
git config --local user.name 'Parity Bot' &&
git config --local user.email [email protected] &&
git config --local advice.detachedHead false &&
yarn &&
${env_vars:-} yarn start 2>&1 | tee -a \"$exec_log_file\"
"
Expand Down
16 changes: 4 additions & 12 deletions runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,10 @@ class Runner {
// it's done and read the results afterwards, which is less likely to add
// any sort of friction that could introduce variation in the measurements
// compared to if one would run them manually.
await new Promise(function (resolve) {
shell.exec(
cmd,
{ silent: false, async: true },
function (code, fullStdout, fullStderr) {
error = code !== 0
stderr = fullStderr
stdout = fullStdout
resolve()
},
)
})
const result = shell.exec(cmd, { silent: false })
stderr = result.stderr
error = result.code !== 0
stdout = result.stdout
} catch (err) {
error = true
try {
Expand Down

0 comments on commit 00b0656

Please sign in to comment.