Skip to content

Commit 6a0703f

Browse files
committed
more debug
1 parent aef41d2 commit 6a0703f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/uutests/src/lib/util.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,12 +1936,12 @@ impl UCommand {
19361936
if let Ok(entries) = fs::read_dir(path) {
19371937
for entry in entries {
19381938
if let Ok(entry) = entry {
1939-
let path_str = entry.path().to_string_lossy().to_string();
1940-
log_info(&format!("{}File:", prefix), &path_str);
1941-
19421939
// Recursively list contents if it's a directory
19431940
if entry.path().is_dir() {
19441941
Self::list_directory_contents(&entry.path(), &format!("{} ", prefix));
1942+
} else {
1943+
let path_str = entry.path().to_string_lossy().to_string();
1944+
log_info(&format!("{}File:", prefix), &path_str);
19451945
}
19461946
}
19471947
}
@@ -1953,7 +1953,12 @@ impl UCommand {
19531953
self.has_run = true;
19541954

19551955
// Check and list files in /project/target/ if it exists
1956-
let target_path = Path::new("/project/target");
1956+
1957+
#[cfg(not(windows))]
1958+
let path = "/project/target";
1959+
#[cfg(windows)]
1960+
let path = "D:\\a\\coreutils\\";
1961+
let target_path = Path::new(path);
19571962
if target_path.exists() && target_path.is_dir() {
19581963
match fs::read_dir(target_path) {
19591964
Ok(_) => {

0 commit comments

Comments
 (0)