Move SUDO to "make test" command line.

Environment variables don't get passed by vmrun, so move to command
line.
This commit is contained in:
Darren Tucker 2021-07-26 12:45:30 +10:00
parent 02e624273b
commit a1f78e08bd
1 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ jobs:
runs-on: ${{ matrix.os }}
env:
TARGET_HOST: ${{ matrix.os }}
SUDO: sudo
strategy:
fail-fast: false
matrix:
@ -31,7 +30,7 @@ jobs:
- name: make install
run: vmrun "cd /usr/src/usr.bin/ssh && sudo make install"
- name: make tests
run: vmrun "cd /usr/src/regress/usr.bin/ssh && make obj && make clean && if test '${{ matrix.configs }}' = 'without-openssl'; then make OPENSSL=no; else make; fi"
run: vmrun "cd /usr/src/regress/usr.bin/ssh && make obj && make clean && if test '${{ matrix.configs }}' = 'without-openssl'; then make SUDO=sudo OPENSSL=no; else make SUDO=sudo; fi"
- name: save logs
if: failure()
uses: actions/upload-artifact@v2