github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/integration/piper-command-wrapper.sh (about)

     1  #!/bin/sh
     2  
     3  # The purpose of this script is to run the binary inside a test container and to ensure its output is stored for assertions
     4  # This is not very elegant, but I have so far not found a better way to save output of a command run via "docker exec"
     5  
     6  "$@" >/tmp/test-log.txt 2>&1