pm2/test/e2e/cli/attach.sh
2018-12-18 18:20:09 +01:00

19 lines
311 B
Bash

#!/usr/bin/env bash
SRC=$(cd $(dirname "$0"); pwd)
source "${SRC}/../include.sh"
cd $file_path/stdin
$pm2 start stdin.js -o out-rel.log --merge-logs
>out-rel.log
# Send LINE\n to stdin application
$pm2 send 0 "LINE"
cat out-rel.log
grep "LINE" out-rel.log
spec "Should have reveived line"
$pm2 delete all