/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/e2e/misc/startup.sh
29 строк
913 B
Unitech
revert: stick with normal test wo parallelization
24 мар 2018, 19:39
24 мар 2018, 19:39
91d14f0
Код
Авторство
О чём код?
#!/usr/bin/env bash if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi SRC=$(cd $(dirname "$0"); pwd) source "${SRC}/../include.sh" cd $file_path $pm2 startup upstart -u $USER --hp $HOME --service-name abcdef spec "should startup command generation exited succesfully with custom service-name" test -e /etc/init.d/abcdef spec "should have generated upstart file with custom service-name" $pm2 unstartup upstart --service-name abcdef spec "should have disabled startup with custom service-name" ! test -e /etc/init.d/abcdef spec "should have deleted upstart file with custom service-name" $pm2 startup upstart -u $USER --hp $HOME spec "should startup command generation exited succesfully" test -e /etc/init.d/pm2-$USER spec "should have generated upstart file" $pm2 unstartup upstart spec "should have disabled startup" ! test -e /etc/init.d/pm2-$USER spec "should have deleted upstart file"