You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/02/25 13:39:51 UTC

[commons-exec] branch master updated: Assume testExec65WithSudoUsingShellScript will fail on GitHub.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-exec.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ae449b  Assume testExec65WithSudoUsingShellScript will fail on GitHub.
3ae449b is described below

commit 3ae449bc88c09a35693231ab0c42b03f9c02cae9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Feb 25 08:39:49 2022 -0500

    Assume testExec65WithSudoUsingShellScript will fail on GitHub.
---
 src/test/java/org/apache/commons/exec/issues/Exec65Test.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/java/org/apache/commons/exec/issues/Exec65Test.java b/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
index a58bfd8..6da82bc 100644
--- a/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
+++ b/src/test/java/org/apache/commons/exec/issues/Exec65Test.java
@@ -104,6 +104,8 @@ public class Exec65Test extends AbstractExecTest {
     public void testExec65WithSudoUsingShellScript() throws Exception {
         Assume.assumeFalse("Test is skipped on travis, because we have to be a sudoer "
                 + "to make the other tests pass.", new File(".").getAbsolutePath().contains("travis"));
+        // TODO Fails on GitHub
+        Assume.assumeTrue(System.getenv("GITHUB_WORKFLOW") == null);
         if (!OS.isFamilyUnix()) {
             throw new ExecuteException(testNotSupportedForCurrentOperatingSystem(), 0);
         }