Skip to content

Commit ae98ebf

Browse files
committed
Auto merge of #43281 - mmatyas:remotetest_env, r=alexcrichton
Allow remote testing remotely when `TEST_DEVICE_ADDR` is set Remote testing was added in #41268, but at the moment it's only enabled if QEMU is also available or we're testing Android. This patch also allows remote testing if the environment variable `TEST_DEVICE_ADDR` is set, as required by `remote-test-client` [[1](https://github.com/rust-lang/rust/blob/master/src/tools/remote-test-client/src/main.rs#L28), [2](https://github.com/rust-lang/rust/blob/master/src/tools/remote-test-client/src/main.rs#L61)]
2 parents 9d54ebe + bbdbb65 commit ae98ebf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,8 @@ impl Build {
920920
/// Returns whether the target will be tested using the `remote-test-client`
921921
/// and `remote-test-server` binaries.
922922
fn remote_tested(&self, target: &str) -> bool {
923-
self.qemu_rootfs(target).is_some() || target.contains("android")
923+
self.qemu_rootfs(target).is_some() || target.contains("android") ||
924+
env::var_os("TEST_DEVICE_ADDR").is_some()
924925
}
925926

926927
/// Returns the root of the "rootfs" image that this target will be using,

0 commit comments

Comments
 (0)