Note about the comment parser and the x86_64-linux limit on tests

This commit is contained in:
Graham Christensen 2018-01-14 15:14:31 -05:00
parent 2135dd3941
commit 56f0701b80
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 5 additions and 3 deletions

View file

@ -183,9 +183,9 @@ baz"));
#[test]
fn test_comment() {
assert_eq!(Some(vec![Instruction::Build(Subset::NixOS, vec![
String::from("tests.foo"),
String::from("tests.bar"),
String::from("tests.baz")
String::from("tests.foo.x86_64-linux"),
String::from("tests.bar.x86_64-linux"),
String::from("tests.baz.x86_64-linux")
])]),
parse("@GrahamCOfBorg test foo bar baz"));
}

View file

@ -71,6 +71,8 @@ impl worker::SimpleWorker for BuildWorker {
_ => "./default.nix"
};
// Note: Don't change the system limiter until the system isn't
// hardcoded to x86_64-linux in the githubcommentfilter
if buildfile == "./nixos/release.nix" && self.system != "x86_64-linux" {
// NixOS jobs get routed to all builders, even though darwin
// cannot build them.