tools/jpackage/junit/share/jdk.jpackage/jdk/jpackage/internal/cli/MainTest.java fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: tools

      On Windows the new test fails when no Wix Toolkit is installed - I would have expected a JTreg SkippedException in this case.
      On some Linux machines I see the following errors:

      [01:37:47.157] STARTED jdk.jpackage.internal.cli.MainTest::testOutput '[3] TestSpec[args=[foo, bar], expectedExitCode=1, expectedStdout=[], expectedStderr=[Found 2 non-option arguments on the command line. Non-option arguments are not allowed]]'
      org.opentest4j.AssertionFailedError: expected: <[Found 2 non-option arguments on the command line. Non-option arguments are not allowed]> but was: <[Found 2 non-option arguments on the command line. Non-option arguments are not allowed, Default bundling operation is undefined, Advice to fix: Add --type parameter to the command line]>

      and

      [01:37:47.805] STARTED jdk.jpackage.internal.cli.MainTest::testOutput '[8] TestSpec[args=[foo, --version], expectedExitCode=1, expectedStdout=[], expectedStderr=[Found 1 non-option arguments on the command line. Non-option arguments are not allowed]]'
      org.opentest4j.AssertionFailedError: expected: <[Found 1 non-option arguments on the command line. Non-option arguments are not allowed]> but was: <[Found 1 non-option arguments on the command line. Non-option arguments are not allowed, Default bundling operation is undefined, Advice to fix: Add --type parameter to the command line]>

      It seems that there is also "error.undefined-default-bundling-operation.advice" added as output. But I see no reason why this only happens on some Linux test machines.

            Assignee:
            Alexey Semenyuk
            Reporter:
            Arno Zeller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: