File tree Expand file tree Collapse file tree 5 files changed +26
-0
lines changed
scenarios/stage_1_only_prompt Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ func TestStages(t *testing.T) {
4848 StdoutFixturePath : "./test_helpers/fixtures/run_program_newline_in_args" ,
4949 NormalizeOutputFunc : normalizeTesterOutput ,
5050 },
51+ "stage_1_only_prompt_pass" : {
52+ StageSlugs : []string {"oo8" },
53+ CodePath : "./test_helpers/scenarios/stage_1_only_prompt" ,
54+ ExpectedExitCode : 0 ,
55+ StdoutFixturePath : "./test_helpers/fixtures/stage_1_only_prompt" ,
56+ NormalizeOutputFunc : normalizeTesterOutput ,
57+ },
5158 "base_pass_bash" : {
5259 UntilStageSlug : "ip1" ,
5360 CodePath : "./test_helpers/bash" ,
Original file line number Diff line number Diff line change 1+ Debug = true
2+
3+ [33m[tester::#OO8] [0m[94mRunning tests for Stage #OO8 (oo8)[0m
4+ [33m[tester::#OO8] [0m[94mRunning ./your_program.sh[0m
5+ [33m[your-program] [0m$
6+ [33m[tester::#OO8] [0m[92m✓ Received prompt[0m
7+ [33m[tester::#OO8] [0m[92mTest passed.[0m
Original file line number Diff line number Diff line change 1+ debug : true
Original file line number Diff line number Diff line change 1+ import sys
2+
3+ def main ():
4+ sys .stdout .write ("$ " )
5+ sys .stdout .flush ()
6+
7+
8+ if __name__ == "__main__" :
9+ main ()
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ exec python3 $( dirname " $0 " ) /main.py " $@ "
You can’t perform that action at this time.
0 commit comments