mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
219327a427
This change addresses some issues of the testcontainer based testing approach (much repeated code, API not on the right abstraction level). It introduces new methods that make use of the docker cli, and rewrites the mta tests using this method. Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
7 lines
284 B
Bash
7 lines
284 B
Bash
#!/bin/sh
|
|
|
|
# The purpose of this script is to run the binary inside a test container and to ensure its output is stored for assertions
|
|
# 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"
|
|
|
|
"$@" >/tmp/test-log.txt 2>&1
|