Detect redoxer hangs
This commit is contained in:
+2
-1
@@ -26,4 +26,5 @@ test:redox:
|
||||
stage: test
|
||||
dependencies:
|
||||
- build:redox
|
||||
script: redoxer test --verbose
|
||||
# do not test binaries, and detect if redoxer hangs
|
||||
script: redoxer test --verbose -- --test '*' --lib -- --nocapture
|
||||
|
||||
+4
-1
@@ -10,7 +10,7 @@ use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering::Relaxed;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
use std::{fs, time};
|
||||
use std::{env, fs, time};
|
||||
|
||||
static IMAGE_SEQ: AtomicUsize = AtomicUsize::new(0);
|
||||
|
||||
@@ -47,6 +47,9 @@ where
|
||||
if !Path::new(&mount_path).exists() {
|
||||
dbg!(fs::create_dir(dbg!(&mount_path))).unwrap();
|
||||
}
|
||||
} else {
|
||||
//FIXME: cargo_bin is broken when cross compiling. This is redoxer specific workaround
|
||||
env::set_var("CARGO_BIN_EXE_redoxfs", "/root/target/x86_64-unknown-redox/debug/redoxfs");
|
||||
}
|
||||
let mut mount_cmd = Command::cargo_bin("redoxfs").expect("unable to find mount bin");
|
||||
mount_cmd.arg("-d").arg(dbg!(&fs)).arg(dbg!(&mount_path));
|
||||
|
||||
Reference in New Issue
Block a user