Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
execute the command through the shell
  • Loading branch information
joao-paulo-parity committed Jul 13, 2021
commit a860dd5710aa1298f22fc4754244a6848658dbbb
4 changes: 1 addition & 3 deletions bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function BenchContext(app, config) {
try {
if (shouldLogOutput) {
console.log(`<=== Start command output (cwd: ${process.cwd()})`)
cp.execFileSync("/bin/dash", ["-c", `${cmd} | tee ${runnerOutput}`], { stdio: "ignore" })
cp.execFileSync("/bin/dash", ["-c", cmd], { stdio: "ignore" })
stdout = fs.readFileSync(runnerOutput).toString()
} else {
stdout = cp.execSync(cmd, { stdio: "pipe", shell: true }).toString()
Expand All @@ -42,8 +42,6 @@ function BenchContext(app, config) {
error = true
if (err.code) {
app.log(`Command ${cmd} failed with error code ${error.code}`);
stdout = err.stdout.toString()

stderr = err.stderr.toString()
if (stderr) {
app.log(`stderr: ${stderr.trim()}`);
Expand Down