提交 b27c0353 编写于 作者: H huybrechts

fix DirectoryBrowserSupportTest on windows

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16073 71c3de6d-444a-0410-be80-ed276b4c234a
上级 aa0b4af1
......@@ -24,6 +24,7 @@
package hudson.model;
import hudson.tasks.Shell;
import hudson.tasks.BatchFile;
import org.jvnet.hudson.test.Email;
import org.jvnet.hudson.test.HudsonTestCase;
......@@ -38,7 +39,10 @@ public class DirectoryBrowserSupportTest extends HudsonTestCase {
public void testDoubleDots() throws Exception {
// create a problematic file name in the workspace
FreeStyleProject p = createFreeStyleProject();
p.getBuildersList().add(new Shell("touch abc..def"));
if(Hudson.isWindows())
p.getBuildersList().add(new BatchFile("echo > abc..def"));
else
p.getBuildersList().add(new Shell("touch abc..def"));
p.scheduleBuild2(0).get();
// can we see it?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册