| 1 | # shellcheck shell=bash |
| 2 | # Paths and fixtures come from the derivation environment. |
| 3 | # shellcheck disable=SC2154 |
| 4 | cp -r "$e2eDir" e2e |
| 5 | chmod -R +w e2e |
| 6 | # The stand-ins go on PATH and are executed by name, so |
| 7 | # their /usr/bin/env shebangs have to resolve in a sandbox |
| 8 | # that has no /usr/bin. |
| 9 | patchShebangs e2e |
| 10 | bash e2e/run.sh 2>&1 | tee log |
| 11 | grep -q 'every scenario held' log |
| 12 | cp log "$out" |