Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3831

jboss-cli.ps1 script doesn't return exit value correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.0.CR3
    • None
    • Scripts
    • None

    Description

      jboss-cli.ps1 script doesn't return exit value correctly

      Steps to reproduce:

      1. start Command prompt in Windows
      2. PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 "--commands=nonsence" --timeout=10000
      3. echo %ERRORLEVEL%
        • "0" is printed, "1" should be printed
      4. add "exit 5" to the end of jboss-cli.ps1 file
      5. PowerShell -ExecutionPolicy Bypass -File jboss-cli.ps1 "--commands=nonsence" --timeout=10000
      6. echo %ERRORLEVEL%
        • "5" is printed

      cc: jperkins-rhn, eduda_jira, jdenise@redhat.com

      Attachments

        Activity

          People

            jdenise@redhat.com Jean Francois Denise
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: