try skipping repl if expected output

This commit is contained in:
plondon 2021-10-23 11:17:09 -04:00
parent fef9307281
commit 7cfa5315a8
1 changed files with 4 additions and 2 deletions

View File

@ -306,10 +306,12 @@ export class Session {
if (compile) {
cmdline = `( ${compile} ) && ( ${run} )`;
}
} else if (repl) {
} else if (repl && !expectedOutput) {
cmdline = repl;
} else {
cmdline = `echo '${name} has no REPL, press Run to see it in action'`;
cmdline = expectedOutput
? "Test runner"
: `echo '${name} has no REPL, press Run to see it in action'`;
}
if (code === undefined) {
code = createEmpty !== undefined ? createEmpty : template + "\n";