yandex / yandex-taxi-testsuite

testsuite: microservices testing framework
MIT License
144 stars 38 forks source link

bash `[[` used in sh script #49

Closed GitCaptain closed 1 year ago

GitCaptain commented 1 year ago

In file service-postgresql [[ used to check postgres version, it leads to runtime error (and also creates annoying file named 11):

INFO     testsuite.environment.shell:shell.py:41 [env/postgresql/start] + + /usr/lib/postgresql/14/bin/pg_config --version
INFO     testsuite.environment.shell:shell.py:41 [env/postgresql/start] awk -F [^0-9]+ { print $2 }
INFO     testsuite.environment.shell:shell.py:41 [env/postgresql/start] + [[ 14 ]]
INFO     testsuite.environment.shell:shell.py:41 [env/postgresql/start] /bookmarker/build_debug/tests/venv-testsuite-bookmarker/lib/python3.10/site-packages/testsuite/databases/pgsql/scripts/service-postgresql: 47: [[: not found

Looks like this line was missed in the https://github.com/yandex/yandex-taxi-testsuite/pull/32.