fix a bug in tests (#1458)

* is_db_sqlite is not accessible

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
Manuel Sabban 2022-04-19 20:00:48 +02:00 committed by GitHub
parent e6a35e8714
commit d9f111c4ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,8 @@ make_init_data() {
# when installed pacakges are always using sqlite, so no need to regenerate
# local credz for sqlite
is_db_sqlite || ${CSCLI} machines add --auto
[ "${DB_BACKEND}" == "sqlite" ] || ${CSCLI} machines add --auto
"${TEST_DIR}/instance-crowdsec" start
"${CSCLI}" lapi status