Skip to content

Commit be1a8de

Browse files
committed
Auto merge of #1234 - gnzlbg:android_runtest, r=gnzlbg
Update runtest-android Keep the implementation in sync with packed_simd and stdsimd.
2 parents 942f6ae + 6732bf1 commit be1a8de

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ci/runtest-android.rs

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,33 @@ use std::process::Command;
33
use std::path::{Path, PathBuf};
44

55
fn main() {
6-
assert_eq!(env::args_os().len(), 2);
7-
let test = PathBuf::from(env::args_os().nth(1).unwrap());
6+
let args = env::args_os()
7+
.skip(1)
8+
.filter(|arg| arg != "--quiet")
9+
.collect::<Vec<_>>();
10+
assert_eq!(args.len(), 1);
11+
let test = PathBuf::from(&args[0]);
812
let dst = Path::new("/data/local/tmp").join(test.file_name().unwrap());
913

1014
let status = Command::new("adb")
1115
.arg("wait-for-device")
1216
.status()
13-
.expect("failed to run rumprun-bake");
17+
.expect("failed to run: adb wait-for-device");
1418
assert!(status.success());
1519

1620
let status = Command::new("adb")
1721
.arg("push")
1822
.arg(&test)
1923
.arg(&dst)
2024
.status()
21-
.expect("failed to run rumprun-bake");
25+
.expect("failed to run: adb pushr");
2226
assert!(status.success());
2327

2428
let output = Command::new("adb")
2529
.arg("shell")
2630
.arg(&dst)
2731
.output()
28-
.expect("failed to run rumprun-bake");
32+
.expect("failed to run: adb shell");
2933
assert!(status.success());
3034

3135
println!("status: {}\nstdout ---\n{}\nstderr ---\n{}",

0 commit comments

Comments
 (0)