Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8238204

run_tests.sh fails on macOS when called from test_jpackage.sh

    XMLWordPrintable

Details

    • b27
    • os_x

    Description

      Following command will fail:
      /usr/local/Cellar/bash/5.0.11/bin/bash test_jpackage.sh -t PATH_TO_JDK -o output
      test_jpackage.sh: line 72: ./run_tests.sh: Permission denied

      Patching test_jpackage.sh as following:
      -exec_command "$basedir/run_tests.sh" -m create "${args[@]}"
      +exec_command $SHELL "$basedir/run_tests.sh" -m create "${args[@]}"

      with export SHELL=/usr/local/Cellar/bash/5.0.11/bin/bash

      will fails with error:
      xargs: illegal option -- -
      usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
                   [-L number] [-n number [-x]] [-P maxprocs] [-s size]
                   [utility [argument ...]]

      Looks like macOS xargs version does not support --no-run-if-empty.

      Attachments

        Activity

          People

            asemenyuk Alexey Semenyuk
            almatvee Alexander Matveev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: