mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 11:06:25 +00:00
fix DirectoryBrowserSupportTest on windows
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16073 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
aa0b4af1ef
commit
b27c035371
1 file changed
+5
-1
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user