mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 19:54:07 +03:00
fix text file busy on linux CI (#3413)
This commit is contained in:
parent
65287cd614
commit
c046681b51
@ -138,18 +138,20 @@ fn create_symlink(original: &Path, link: PathBuf) -> io::Result<Symlink> {
|
||||
};
|
||||
}
|
||||
|
||||
/// Only use 1 test to prevent cargo from waiting on itself.
|
||||
///
|
||||
/// While not ideal, this is fine because they use the same solution for both cases.
|
||||
#[test]
|
||||
fn symlink() -> Result {
|
||||
fn restart_symlinks() -> Result {
|
||||
// single symlink
|
||||
symlink_runner(|bin| {
|
||||
let mut link = bin.to_owned();
|
||||
link.set_file_name("symlink");
|
||||
link.set_extension("exe");
|
||||
create_symlink(bin, link)
|
||||
})
|
||||
}
|
||||
})?;
|
||||
|
||||
#[test]
|
||||
fn nested_symlinks() -> Result {
|
||||
// nested symlinks
|
||||
symlink_runner(|bin| {
|
||||
let mut link1 = bin.to_owned();
|
||||
link1.set_file_name("symlink1");
|
||||
|
Loading…
Reference in New Issue
Block a user