shellharden 4.1.3

The corrective bash syntax highlighter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::env;
use std::process::Command;

#[test]
fn moduletest() {
	let mut child = Command::new("moduletests/run")
		.arg(env!("CARGO_BIN_EXE_shellharden"))
		.arg("moduletests")
		.spawn()
		.expect("moduletests/run: Command not found")
	;
	match &child.wait() {
		&Ok(status) => assert!(status.success()),
		&Err(_) => assert!(false),
	}
}