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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.12
    • unversioned
    • None

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes