File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use ostree_ext::{gio, glib};
21
21
use std:: borrow:: Cow ;
22
22
use std:: collections:: { HashMap , HashSet } ;
23
23
use std:: io:: { BufReader , BufWriter } ;
24
- use std:: process:: Command ;
24
+ use std:: process:: { Command , Stdio } ;
25
25
use std:: time:: SystemTime ;
26
26
use xshell:: cmd;
27
27
@@ -35,7 +35,14 @@ const TEST_REGISTRY_DEFAULT: &str = "localhost:5000";
35
35
/// Check if we have skopeo
36
36
fn check_skopeo ( ) -> bool {
37
37
static HAVE_SKOPEO : OnceCell < bool > = OnceCell :: new ( ) ;
38
- * HAVE_SKOPEO . get_or_init ( || Command :: new ( "skopeo" ) . arg ( "--help" ) . status ( ) . is_ok ( ) )
38
+ * HAVE_SKOPEO . get_or_init ( || {
39
+ Command :: new ( "skopeo" )
40
+ . arg ( "--help" )
41
+ . stdout ( Stdio :: null ( ) )
42
+ . stderr ( Stdio :: null ( ) )
43
+ . status ( )
44
+ . is_ok ( )
45
+ } )
39
46
}
40
47
41
48
#[ track_caller]
You can’t perform that action at this time.
0 commit comments