Skip to content

Commit

Permalink
XXX Windows test hack
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Nov 7, 2024
1 parent fdfe808 commit fddb296
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions lib/tests/test_local_working_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fddb296

Please sign in to comment.