Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-3085

Run-Executable from helpers.ps1 mutes process output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: unversioned
    • Fix Version/s: 5.12
    • Labels:
      None

      Description

      We are using Run-Executable to run various executables in Windows provisioning scripts, however their stdout and stderr are missing in log. As a result, if something goes wrong it may be hard to understand why. In particular, I'm interested in getting logs from conan, which is rather chatty.

      People say [1] that this is inherent peculiarity of Start-Process. One possible workaround is to redirect stdout and stderr into separate files and upload them alongside with provisioning logs, however each invocation of Start-Process seems to overwrite existing log files instead of appending. Other way is to replace Start-Process with something else.

      [1] https://stackoverflow.com/questions/8761888/capturing-standard-out-and-error-with-start-process

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                annulen Konstantin Tokarev
                Reporter:
                annulen Konstantin Tokarev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes