failed unit-tests due to missing dependency
Tried running rake unittest_backend
on my fresh Ubuntu 20.04. They failed with this:
rm -f backend/server/agentcomm/api_mock.go
for db in $(psql -t -h localhost -p 5432 -U storktest -c "select datname from pg_database where datname ~ 'storktest.*'"); do
dropdb -h localhost -p 5432 -U storktest $db
done
sh: 2: psql: not found
createdb -h localhost -p 5432 -U storktest -O storktest storktest
rake aborted!
Command failed with status (127): [createdb -h localhost -p 5432 -U storktest...]
/home/thomson/devel/stork/Rakefile:405:in `block in <top (required)>'
/usr/share/rubygems-integration/all/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => unittest_backend
(See full trace by running task with --trace)
We should either make a check if psql is available (maybe make an array of tools we require in the system)?