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

Commit 4a174d9

Browse files
committed
CI: Print full output if test fails
1 parent 550e8a5 commit 4a174d9

7 files changed

+7
-0
lines changed

tests/nancy_cli_run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ if [[ $output =~ "ERROR: AWS keys not given" ]]; then
88
echo -e "\e[36mOK\e[39m"
99
else
1010
>&2 echo -e "\e[31mFAILED\e[39m"
11+
>&2 echo -e "Output: $output"
1112
exit 1
1213
fi

tests/nancy_cli_run_no_optons.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ if [[ $output =~ "ERROR: AWS keys not given" ]]; then
66
echo -e "\e[36mOK\e[39m"
77
else
88
>&2 echo -e "\e[31mFAILED\e[39m"
9+
>&2 echo -e "Output: $output"
910
exit 1
1011
fi

tests/nancy_cli_unknown.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ if [[ $output =~ "ERROR: Unknown command" ]]; then
66
echo -e "\e[36mOK\e[39m"
77
else
88
>&2 echo -e "\e[31mFAILED\e[39m"
9+
>&2 echo -e "Output: $output"
910
exit 1
1011
fi

tests/nancy_run_localhost_simple_dump.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ if [[ $output =~ "Queries duration:" ]]; then
1818
echo -e "\e[36mOK\e[39m"
1919
else
2020
>&2 echo -e "\e[31mFAILED\e[39m"
21+
>&2 echo -e "Output: $output"
2122
exit 1
2223
fi

tests/nancy_run_localhost_simple_dump_with_index.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ if [[ $output =~ "Queries duration:" ]]; then
2020
echo -e "\e[36mOK\e[39m"
2121
else
2222
>&2 echo -e "\e[31mFAILED\e[39m"
23+
>&2 echo -e "Output: $output"
2324
exit 1
2425
fi

tests/nancy_run_no_options.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ if [[ $output =~ "ERROR: AWS keys not given" ]]; then
66
echo -e "\e[36mOK\e[39m"
77
else
88
>&2 echo -e "\e[31mFAILED\e[39m"
9+
>&2 echo -e "Output: $output"
910
exit 1
1011
fi

tests/nancy_run_options_no_instance_type.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ if [[ $output =~ "ERROR: AWS EC2 Instance type not given." ]]; then
88
exit 0
99
else
1010
>&2 echo -e "\e[31mFAILED\e[39m"
11+
>&2 echo -e "Output: $output"
1112
exit 1
1213
fi

0 commit comments

Comments
 (0)