From 4ebf7bfea6eeecab4ec605abfa01cc61af53f95e Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 17 Nov 2016 11:31:53 +0100 Subject: [PATCH] rustup allows one to install the rust source, that's obviously not a target --- tests/compiletest.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 025ec660d2e..181f06ba1eb 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -34,8 +34,9 @@ fn for_all_targets(sysroot: &str, mut f: F) { continue; } let target = target.file_name().into_string().unwrap(); - if target == "etc" { - continue; + match &*target { + "etc" | "src" => continue, + _ => {}, } let stderr = std::io::stderr(); writeln!(stderr.lock(), "running tests for target {}", target).unwrap();