-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factorize the container launch part into tests/run, and change tests/run-$OS to only be the part that runs inside the container. That way, the latter can be re-used in CI environments that do their own container launching.
- Loading branch information
1 parent
1848d84
commit b1e729d
Showing
4 changed files
with
29 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
set -eux | ||
IMAGE="$1" | ||
|
||
if type podman >/dev/null 2>&1; then | ||
RUNC=podman | ||
else | ||
RUNC="sudo docker" | ||
fi | ||
|
||
$RUNC run --interactive --rm --volume `pwd`:/source --workdir /source "$IMAGE" /bin/sh tests/run-${IMAGE%:*} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters