Local runner for GitHub autograder
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Switch to just bash, update README

Ben C 84669c77 8727ae0c

+3 -3
+2 -1
README.md
··· 2 2 3 3 Simple program that runs test cases specified in an autograding.json file and reports results. Useful for previewing how GitHub will run your autograder and project. 4 4 5 - Currently this relies on you setting `SHELL` in your environment meaning Windows won't work. 5 + This will only work on Linux as it uses `bash`. Also most GitHub auto-graders runs on the Ubuntu runner image so the commands 6 + are gonna be Linux specific anyway. 6 7 7 8 ## Usage 8 9
+1 -2
src/runner.rs
··· 9 9 use wait_timeout::ChildExt; 10 10 11 11 pub fn setup_phase(cmd: &str) -> Result<()> { 12 - let shell = env::var("SHELL").map_err(|_| anyhow!("SHELL environment variable not set"))?; 13 - let mut child = Command::new(shell) 12 + let mut child = Command::new("bash") 14 13 .arg("-c") 15 14 .arg(cmd) 16 15 .spawn()