Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-50155] Marked two integration tests as not runnable on Windows.
Browse files Browse the repository at this point in the history
Tests create a pipeline with shell commands (cat, cp, ...)
  • Loading branch information
uhafner committed Mar 13, 2018
1 parent c57adef commit 4f5f7b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Expand Up @@ -11,8 +11,10 @@

import org.apache.commons.io.IOUtils;
import org.codehaus.plexus.util.Base64;
import org.junit.Assume;
import org.junit.Test;

import static hudson.Functions.isWindows;
import io.jenkins.plugins.analysis.core.testutil.IntegrationTest;

import static edu.hm.hafner.analysis.assertj.Assertions.*;
Expand Down Expand Up @@ -46,6 +48,8 @@ public class MatrixJobITest extends IntegrationTest {
*/
@Test
public void shouldCreateIndividualAxisResults() throws Exception {
Assume.assumeFalse("Test not yet OS independent: requires UNIX commands", isWindows());

MatrixProject project = j.createProject(MatrixProject.class);
enableWarnings(project);

Expand Down
Expand Up @@ -10,10 +10,15 @@
import org.eclipse.collections.impl.factory.Lists;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
import org.junit.Assume;
import org.junit.Test;
import org.jvnet.hudson.test.TestExtension;
import org.kohsuke.stapler.HttpResponse;

import edu.hm.hafner.analysis.Issue;
import edu.hm.hafner.analysis.Issues;
import static edu.hm.hafner.analysis.assertj.Assertions.*;
import static hudson.Functions.*;
import io.jenkins.plugins.analysis.core.model.AnalysisResult;
import io.jenkins.plugins.analysis.core.model.StaticAnalysisTool;
import io.jenkins.plugins.analysis.core.steps.PublishIssuesStep;
Expand All @@ -22,14 +27,9 @@
import io.jenkins.plugins.analysis.warnings.groovy.GroovyParser;
import io.jenkins.plugins.analysis.warnings.groovy.ParserConfiguration;

import static edu.hm.hafner.analysis.assertj.Assertions.*;

import hudson.model.UnprotectedRootAction;
import hudson.util.HttpResponses;

import edu.hm.hafner.analysis.Issue;
import edu.hm.hafner.analysis.Issues;

/**
* Integration tests of the warnings plug-in in pipelines.
*
Expand All @@ -46,6 +46,8 @@ public class StepsITest extends PipelineITest {
*/
@Test
public void issue11675() {
Assume.assumeFalse("Test not yet OS independent: requires UNIX commands", isWindows());

WorkflowJob job = createJobWithWorkspaceFiles("issue11675.txt");
job.setDefinition(asStage(
"sh 'cat issue11675-issues.txt'",
Expand Down

0 comments on commit 4f5f7b5

Please sign in to comment.