Commit 9b9e1f63 authored by Sven Strickroth's avatar Sven Strickroth

Disable worktree tests for Cygwin git

Signed-off-by: Sven Strickroth's avatarSven Strickroth <email@cs-ware.de>
parent 854c1769
Pipeline #7113257 passed with stage
...@@ -704,24 +704,8 @@ TEST_P(CBasicGitWithMultiLinkedTestWithSubmoduleRepoFixture, AdminDirMap) // Sub ...@@ -704,24 +704,8 @@ TEST_P(CBasicGitWithMultiLinkedTestWithSubmoduleRepoFixture, AdminDirMap) // Sub
workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git"); workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git");
EXPECT_TRUE(CPathUtils::IsSamePath(m_MainWorkTreePath, workDir)); EXPECT_TRUE(CPathUtils::IsSamePath(m_MainWorkTreePath, workDir));
if (!CGit::ms_bCygwinGit) if (CGit::ms_bCygwinGit)
{ return;
// Test if the sub-module admin directory can be found (**WITH** trailing path delimiter)
adminDir = g_AdminDirMap.GetAdminDir(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1\\");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1", adminDir));
// Test if the sub-module admin directory can be found (**WITHOUT** trailing path delimiter)
adminDir = g_AdminDirMap.GetAdminDir(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1", adminDir));
// Test if reverse lookup on submodule works (**WITH** trailing path delimiter)
workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1\\");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1", workDir));
// Test if reverse lookup on submodule works (**WITHOUT** trailing path delimiter)
workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1", workDir));
}
// Test if the linked repository admin directory can be found (**WITHOUT** trailing path delimiter) // Test if the linked repository admin directory can be found (**WITHOUT** trailing path delimiter)
adminDir = g_AdminDirMap.GetAdminDir(m_LinkedWorkTreePath); adminDir = g_AdminDirMap.GetAdminDir(m_LinkedWorkTreePath);
...@@ -742,4 +726,20 @@ TEST_P(CBasicGitWithMultiLinkedTestWithSubmoduleRepoFixture, AdminDirMap) // Sub ...@@ -742,4 +726,20 @@ TEST_P(CBasicGitWithMultiLinkedTestWithSubmoduleRepoFixture, AdminDirMap) // Sub
// Test reverse lookup on linked worktree admin directory (**WITHOUT** trailing path delimiter) // Test reverse lookup on linked worktree admin directory (**WITHOUT** trailing path delimiter)
workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\worktrees\\LinkedWorkTree"); workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\worktrees\\LinkedWorkTree");
EXPECT_TRUE(CPathUtils::IsSamePath(m_LinkedWorkTreePath, workDir)); EXPECT_TRUE(CPathUtils::IsSamePath(m_LinkedWorkTreePath, workDir));
// Test if the sub-module admin directory can be found (**WITH** trailing path delimiter)
adminDir = g_AdminDirMap.GetAdminDir(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1\\");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1", adminDir));
// Test if the sub-module admin directory can be found (**WITHOUT** trailing path delimiter)
adminDir = g_AdminDirMap.GetAdminDir(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1", adminDir));
// Test if reverse lookup on submodule works (**WITH** trailing path delimiter)
workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1\\");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1", workDir));
// Test if reverse lookup on submodule works (**WITHOUT** trailing path delimiter)
workDir = g_AdminDirMap.GetWorkingCopy(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L".git\\modules\\sub1");
EXPECT_TRUE(CPathUtils::IsSamePath(CPathUtils::BuildPathWithPathDelimiter(m_MainWorkTreePath) + L"sub1", workDir));
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment