Skip to content

Commit

Permalink
Log the execSync result for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Mar 27, 2024
1 parent ea75f4d commit f231507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ function run() {

try {
if (setupCommand) {
execSync(setupCommand, {timeout})
execSync(setupCommand, {timeout, env, stdio: 'inherit'})
}

startTime = new Date()
output = execSync(command, {timeout, env}).toString()
output = execSync(command, {timeout, env, stdio: 'inherit'}).toString()
endTime = new Date()

result = generateResult('pass', testName, command, output, endTime - startTime, maxScore)
Expand Down

0 comments on commit f231507

Please sign in to comment.