/
UCS
/
snoopy
Обзор
Документация
Войти
/
UCS
/
snoopy
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
tests/datasource/datasource_pid.sh
35 строк
480 B
Bostjan Skufca Jese
tests: Refactor multiple dedicated tests-related commands into subcommands under a single `snoopy-test` executable
10 июл 2022, 20:24
10 июл 2022, 20:24
cdf8e65
Код
Авторство
О чём код?
#!/bin/bash ### Configure shell and bootstrap # set -e set -u . `dirname $BASH_SOURCE`/_bootstrap.sh ### Get data # # Run this command first, in background $SNOOPY_TEST_CLI run datasource pid > datasource_pid.out.tmp & # Capture its pid from BASH VAL_REAL=$! # Wait for it to finish wait $VAL_REAL # Get its output VAL_SNOOPY=`cat datasource_pid.out.tmp` # Do a cleanup rm -f datasource_pid.out.tmp ### Evaluate # snoopy_test_compareValues "$VAL_SNOOPY" "$VAL_REAL"