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

Ability to ask testrunner ServerController to wait for server process exit and get the exit code

    XMLWordPrintable

Details

    Description

      Imagine testing the shutdown --restart CLI command in a manualmode test.

      The standalone.sh script is not used so the restart won't work, as the restart logic is in the script. But the test itself could handle the restart part if the ServerController would let it know when the server process is stopped and what the exit code was.

      So,

      1) test spawns a thread to do shutdown --restart in the CLI
      2) test waits for server to stop, confirms correct exit code
      3) test starts the server again
      4) thread doing the shutdown --restart moves on since the server starts again

      Attachments

        Activity

          People

            lvydra Lukas Vydra
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: