Don't use pushd/popd unnecessarily

Each step executes in its own shell, so it's not necessary to restore
the previous working directory and a simple "cd" would do just fine but,
in fact, we don't even need this as we can just set the working
directory at the step level.
This commit is contained in:
Vadim Zeitlin
2021-02-05 19:04:14 +01:00
parent 1aae6e26ca
commit 53ece3c2ed

View File

@@ -180,10 +180,9 @@ jobs:
- name: Testing
if: matrix.skip_testing != true
working-directory: tests
run: |
pushd tests
./test || rc=$?
popd
if [ -n "$rc" ]; then
echo '*** Tests failed, contents of httpbin.log follows: ***'
echo '-----------------------------------------------------------'