]> git.lizzy.rs Git - rust.git/commitdiff
std: Add more entries to stdtest base_port
authorAlex Crichton <alex@alexcrichton.com>
Fri, 23 Oct 2015 17:50:53 +0000 (10:50 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 23 Oct 2015 17:51:48 +0000 (10:51 -0700)
The new bots we have may conflict with one another on base ports, causing tests
to fail. For example the linux-musl-64-opt and linux-64-opt bots are using the
same base port right now, causing some spurious failures every now and then.

src/libstd/net/test.rs

index c6d839d55a865d97c8e45285d4b263b1cc0564f0..9665fd722872fc54891d84a11e211fd194cc5741 100644 (file)
@@ -47,7 +47,9 @@ pub fn tsa<A: ToSocketAddrs>(a: A) -> Result<Vec<SocketAddr>, String> {
 // it is running in and assigns a port range based on it.
 fn base_port() -> u16 {
     let cwd = env::current_dir().unwrap();
-    let dirs = ["32-opt", "32-nopt", "64-opt", "64-nopt", "64-opt-vg",
+    let dirs = ["32-opt", "32-nopt",
+                "musl-64-opt", "cross-opt",
+                "64-opt", "64-nopt", "64-opt-vg", "64-debug-opt",
                 "all-opt", "snap3", "dist"];
     dirs.iter().enumerate().find(|&(_, dir)| {
         cwd.to_str().unwrap().contains(dir)