File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,12 @@ impl ConfigPaths {
8181
8282/// Return the path to the global container authentication file, if it exists.
8383pub fn get_global_authfile ( root : & Dir ) -> Result < Option < ( Utf8PathBuf , File ) > > {
84- let root = & RootDir :: new ( root, "." ) ?;
84+ // Workaround for https://github.com/rpm-software-management/mock/pull/1613#issuecomment-3421908652
85+ #[ cfg( test) ]
86+ return Ok ( None ) ;
87+
8588 let am_uid0 = rustix:: process:: getuid ( ) == rustix:: process:: Uid :: ROOT ;
89+ let root = & RootDir :: new ( root, "." ) ?;
8690 get_global_authfile_impl ( root, am_uid0)
8791}
8892
@@ -115,6 +119,7 @@ mod tests {
115119 }
116120
117121 #[ test]
122+ #[ ignore = "https://github.com/rpm-software-management/mock/pull/1613#issuecomment-3421908652" ]
118123 fn test_config_paths ( ) -> Result < ( ) > {
119124 let root = & cap_tempfile:: TempDir :: new ( cap_std:: ambient_authority ( ) ) ?;
120125 let rootdir = & RootDir :: new ( root, "." ) ?;
You can’t perform that action at this time.
0 commit comments