···2233Simple 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.
4455-Currently this relies on you setting `SHELL` in your environment meaning Windows won't work.
55+This will only work on Linux as it uses `bash`. Also most GitHub auto-graders runs on the Ubuntu runner image so the commands
66+are gonna be Linux specific anyway.
6778## Usage
89
+1-2
src/runner.rs
···99use wait_timeout::ChildExt;
10101111pub fn setup_phase(cmd: &str) -> Result<()> {
1212- let shell = env::var("SHELL").map_err(|_| anyhow!("SHELL environment variable not set"))?;
1313- let mut child = Command::new(shell)
1212+ let mut child = Command::new("bash")
1413 .arg("-c")
1514 .arg(cmd)
1615 .spawn()