Skip to content

Commit 29a4f45

Browse files
authored
Merge pull request #15 from education/log-exec=sync-run
Log the execSync result for debugging
2 parents ea75f4d + f231507 commit 29a4f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ function run() {
6060

6161
try {
6262
if (setupCommand) {
63-
execSync(setupCommand, {timeout})
63+
execSync(setupCommand, {timeout, env, stdio: 'inherit'})
6464
}
6565

6666
startTime = new Date()
67-
output = execSync(command, {timeout, env}).toString()
67+
output = execSync(command, {timeout, env, stdio: 'inherit'}).toString()
6868
endTime = new Date()
6969

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

0 commit comments

Comments
 (0)