Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit fdf42a2

Browse files
dmiusDmitry
authored andcommitted
nancy cli start test
1 parent 7a3f6ab commit fdf42a2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/nancy_cli_run.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
export PATH=$PATH:${BASH_SOURCE%/*}/..
4+
5+
output=$(nancy run --run-on aws 2>&1)
6+
7+
if [[ $output =~ "ERROR: AWS keys not given" ]]; then
8+
echo -e "\e[36mOK\e[39m"
9+
else
10+
>&2 echo -e "\e[31mFAILED\e[39m"
11+
exit 1
12+
fi

0 commit comments

Comments
 (0)