mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-08 00:55:52 +00:00
Fix code formatting issues to pass CI
Co-authored-by: imjasonh <210737+imjasonh@users.noreply.github.com>
This commit is contained in:
parent
a030b26bb9
commit
6b29284f9d
2 changed files with 11 additions and 3 deletions
|
|
@ -272,7 +272,7 @@ impl TestEnvironment {
|
|||
/// Create a symbolic link
|
||||
pub fn create_symlink(&self, target: &str, link_name: &str) -> Result<()> {
|
||||
let link_path = self.work_dir.join(link_name);
|
||||
|
||||
|
||||
#[cfg(unix)]
|
||||
{
|
||||
// For Unix systems, preserve the target path as-is to support relative links
|
||||
|
|
|
|||
|
|
@ -218,7 +218,11 @@ exec ls link_dir"#;
|
|||
fs::write(&script_path, script_content).unwrap();
|
||||
|
||||
let result = run_test(&script_path);
|
||||
assert!(result.is_ok(), "Directory symlink test failed: {:?}", result);
|
||||
assert!(
|
||||
result.is_ok(),
|
||||
"Directory symlink test failed: {:?}",
|
||||
result
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
|
|
@ -240,7 +244,11 @@ relative content"#;
|
|||
fs::write(&script_path, script_content).unwrap();
|
||||
|
||||
let result = run_test(&script_path);
|
||||
assert!(result.is_ok(), "Relative path symlink test failed: {:?}", result);
|
||||
assert!(
|
||||
result.is_ok(),
|
||||
"Relative path symlink test failed: {:?}",
|
||||
result
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue