ok/jj
1
0
Fork 0
forked from mirrors/jj

tests: enable test of file type transactions on Windows, only skip symlinks

I think all types but symlinks should work on Windows. Let's see if
GitHub CI agrees (I don't have access to a Windows machine).
This commit is contained in:
Martin von Zweigbergk 2021-06-13 21:38:34 -07:00
parent 214a32faa8
commit 408b0dc1d8

View file

@ -52,7 +52,6 @@ fn test_root(use_git: bool) {
assert_eq!(wc_commit.committer().email, settings.user_email());
}
#[cfg(unix)]
#[test_case(false ; "local store")]
#[test_case(true ; "git store")]
fn test_checkout_file_transitions(use_git: bool) {
@ -69,6 +68,7 @@ fn test_checkout_file_transitions(use_git: bool) {
Missing,
Normal,
Executable,
#[cfg_attr(windows, allow(dead_code))]
Symlink,
Tree,
GitSubmodule,
@ -138,13 +138,9 @@ fn test_checkout_file_transitions(use_git: bool) {
tree_builder.set(RepoPath::from_internal_string(path), value);
}
let mut kinds = vec![
Kind::Missing,
Kind::Normal,
Kind::Executable,
Kind::Symlink,
Kind::Tree,
];
let mut kinds = vec![Kind::Missing, Kind::Normal, Kind::Executable, Kind::Tree];
#[cfg(unix)]
kinds.push(Kind::Symlink);
if use_git {
kinds.push(Kind::GitSubmodule);
}