File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
crates/tests/tedge_test_utils/src Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 74
74
- name : cargo install cargo-llvm-cov
75
75
uses : taiki-e/install-action@cargo-llvm-cov
76
76
77
+ - name : Create dir for temporary files
78
+ run : sudo mkdir /mnt/test-tmp && sudo chmod 777 /mnt/test-tmp
79
+
77
80
- name : cargo llvm-cov
78
81
run : cargo llvm-cov nextest --no-fail-fast --locked --all-features --all-targets --codecov --output-path codecov.json
82
+ env :
83
+ TEMP_DIR_ROOT : /mnt/test-tmp
79
84
80
85
# https://github.com/rust-lang/cargo/issues/6669
81
86
- name : cargo test --doc
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ pub struct TempTedgeFile {
21
21
22
22
impl Default for TempTedgeDir {
23
23
fn default ( ) -> Self {
24
- let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
24
+ let temp_dir = if let Ok ( dir) = std:: env:: var ( "TEMP_DIR_ROOT" ) {
25
+ TempDir :: new_in ( dir) . unwrap ( )
26
+ } else {
27
+ TempDir :: new ( ) . unwrap ( )
28
+ } ;
25
29
let current_file_path = Utf8Path :: from_path ( temp_dir. path ( ) ) . unwrap ( ) . to_owned ( ) ;
26
30
TempTedgeDir {
27
31
temp_dir : Arc :: new ( temp_dir) ,
You can’t perform that action at this time.
0 commit comments