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

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.12
    • unversioned
    • 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

          For Gerrit Dashboard: QTQAINFRA-3085
          # Subject Branch Project Status CR V

          Activity

            People

              annulen Konstantin Tokarev
              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