From fddb2963f586abc786943cc6185ad072b875d021 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Thu, 7 Nov 2024 10:41:16 +0900 Subject: [PATCH] XXX Windows test hack --- .github/workflows/build.yml | 7 ++----- lib/tests/test_local_working_copy.rs | 8 ++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 118f48a702..c985f319bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,11 +16,8 @@ jobs: fail-fast: false matrix: # macos-13 is x86; macos-14 is ARM - os: [ubuntu-latest, macos-13, macos-14, windows-latest] + os: [windows-latest] cargo_flags: [""] - include: - - os: ubuntu-latest - cargo_flags: "--all-features" runs-on: ${{ matrix.os }} # TODO FIXME (aseipp): keep the timeout limit to ~15 minutes. this is long @@ -71,7 +68,7 @@ jobs: - name: Build run: cargo build --workspace --all-targets --verbose ${{ matrix.cargo_flags }} - name: Test - run: cargo test --workspace --all-targets --verbose ${{ matrix.cargo_flags }} + run: cargo test --workspace --all-targets --verbose ${{ matrix.cargo_flags }} --no-fail-fast env: RUST_BACKTRACE: 1 diff --git a/lib/tests/test_local_working_copy.rs b/lib/tests/test_local_working_copy.rs index e00f4eea6d..49fabf620d 100644 --- a/lib/tests/test_local_working_copy.rs +++ b/lib/tests/test_local_working_copy.rs @@ -1633,6 +1633,14 @@ fn test_check_out_reserved_file_path_vfat(file_path_str: &str) { let workspace_root = test_workspace.workspace.workspace_root().to_owned(); std::fs::create_dir(workspace_root.join(".git")).unwrap(); let is_vfat = check_vfat(&workspace_root); + if is_vfat { + for i in 0..=9 { + for name in ["GIT", "JJ"] { + let path = workspace_root.join(format!("{name}~{i}")); + eprintln!("XXX {} {}", path.display(), path.exists()); + } + } + } let file_path = RepoPath::from_internal_string(file_path_str); let disk_path = file_path.to_fs_path_unchecked(&workspace_root);