try skipping repl if expected output
This commit is contained in:
parent
fef9307281
commit
7cfa5315a8
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue