From c5a56e4b897abbba06d5ba170f3b5cdace1f8229 Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: Dec 09 2015 10:44:22 +0000 Subject: p_abrt-cli: some improvements in the test Signed-off-by: Matej Habrnal --- diff --git a/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh b/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh index dec537e..df84dc6 100755 --- a/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh +++ b/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh @@ -146,10 +146,21 @@ rlJournalStart rlAssertGrep "Checking for duplicates" abrt-cli.log rlAssertGrep "Creating a new issue" abrt-cli.log rlAssertGrep "Adding External URL to issue" abrt-cli.log + rlAssertNotGrep "Failed to create a new issue" abrt-cli.log + rlAssertNotGrep "504 Gateway Time-out" abrt-cli.log + + grep -q "504 Gateway Time-out" abrt-cli.log + if [ "$?" -eq "0" ];then + echo "!!! Server $URL respond with '504 Gateway Time-out' !!!" + fi #get issue id issue_id=`grep "Status: new " abrt-cli.log | grep -e [0-9]* -o` - echo "Created issue $issue_id" + if [ "_$issue_id" == "_" ];then + echo "No ID of created issue" + else + echo "Created issue $issue_id" + fi mv -fv abrt-cli.log p_abrt-cli-created_new_issue.log rlPhaseEnd