diff --git a/debian/tests/smoke b/debian/tests/smoke index 866d0ad409b..5c4facbb501 100644 --- a/debian/tests/smoke +++ b/debian/tests/smoke @@ -45,28 +45,29 @@ else systemctl restart mariadb fi -mariadb <&2 - exit 1 +result=$(echo 'SELECT bar+1 FROM foo;'|mysql --batch --skip-column-names --user=testuser --password=testpassword testdatabase) +if [ "$result" != "42" ] +then + echo "Unexpected result" >&2 + exit 1 fi -mariadb --user=testuser --password=testpassword testdatabase <&1 echo "run: OK"