Skip to content

Commit 4d948e3

Browse files
committed
Consistency: use mysql_log and credentials already set in baseinstall.sh
1 parent 02c7940 commit 4d948e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/jobs/unit-tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ unittest=$2
1414
export unit=1
1515

1616
# Add team to admin user
17-
echo "UPDATE user SET teamid = 1 WHERE userid = 1;" | mysql domjudge_test
17+
mysql_log "UPDATE user SET teamid = 1 WHERE userid = 1;" domjudge_test
1818

1919
# Copy the .env.test file, as this is normally not done during
2020
# installation and we need it.
@@ -33,7 +33,6 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3333
pcov="--coverage-html=${DIR}/coverage-html --coverage-clover coverage.xml"
3434
fi
3535
set +e
36-
echo "unused:sqlserver:domjudge:domjudge:domjudge:3306" > /opt/domjudge/domserver/etc/dbpasswords.secret
3736
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${ARTIFACTS}/unit-tests.xml --colors=never $pcov | tee "$ARTIFACTS"/phpunit.out
3837
UNITSUCCESS=$?
3938

0 commit comments

Comments
 (0)