| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | running_in_containerscip-shell shell shell-project 0.0.0 running_in_container().() { |
| 4 | # look for a non-root cgroup |
| 5 | grepscip-shell system . . grep. --quiet --invert-match ':/$' /proc/self/cgroupscip-shell filesystem . . `/proc/self/cgroup`. |
| 6 | } |
| 7 | |
| 8 | mainscip-shell shell shell-project 0.0.0 main().() { |
| 9 | set -eu -o pipefail -x |
| 10 | |
| 11 | goscip-shell system . . go. install github.com/cloudfoundry/gosigar/vendor/github.com/onsi/ginkgo/ginkgo |
| 12 | |
| 13 | skip_packages="" |
| 14 | |
| 15 | if running_in_containerscip-shell shell shell-project 0.0.0 running_in_container().; then |
| 16 | set +x |
| 17 | skip_packages="$skip_packages,psnotify" |
| 18 | echoscip-shell system . . echo. -e "\e[33mDetected running in container." |
| 19 | echoscip-shell system . . echo. -e "Cannot run \e[1mpsnotify\e[21m suite because of socket syscall limitations." |
| 20 | echoscip-shell system . . echo. -e "Skipping...\e[0m" |
| 21 | set -x |
| 22 | fi |
| 23 | |
| 24 | ginkgo -p -r -randomizeAllSpecs -randomizeSuites -keepGoing -race -skipPackage=$skip_packages |
| 25 | } |
| 26 | |
| 27 | mainscip-shell shell shell-project 0.0.0 main(). "$@" |