From 8147053a6c54ee2c59a28e8ac90ab054bde586e7 Mon Sep 17 00:00:00 2001 From: Matej Habrnal Date: Dec 09 2015 10:44:04 +0000 Subject: p_abrt-cli: improve loging - save log file 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 0d46157..dec537e 100755 --- a/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh +++ b/tests/p_abrt-cli/10-abrt-cli-reporting-test.sh @@ -131,7 +131,7 @@ rlJournalStart rlAssertGrep "CentOS Bug Tracker User name:" abrt-cli.log rlAssertGrep "CentOS Bug Tracker Password:" abrt-cli.log - rm -f abrt-cli.log + mv -fv abrt-cli.log p_abrt-cli-testing_workflow.log rlPhaseEnd rlPhaseStartTest "create a new issue" @@ -151,7 +151,7 @@ rlJournalStart issue_id=`grep "Status: new " abrt-cli.log | grep -e [0-9]* -o` echo "Created issue $issue_id" - rm -f abrt-cli.log + mv -fv abrt-cli.log p_abrt-cli-created_new_issue.log rlPhaseEnd rlPhaseStartTest "duplicate issue" @@ -162,6 +162,7 @@ rlJournalStart rlAssertGrep "Bug is already reported:" abrt-cli.log rlAssertGrep "Adding new comment to issue" abrt-cli.log + mv -fv abrt-cli.log p_abrt-cli-duplicate_issue.log rlPhaseEnd rlPhaseStartTest "check created issue" @@ -177,12 +178,15 @@ rlJournalStart rlAssertNotGrep "CustomFieldValueForIssueData\[0\]" curl.log rlAssertGrep "IssueNoteData\[1\]\"" curl.log + mv -fv curl.log p_abrt-cli-check_created_issue.log rlPhaseEnd rlPhaseStartCleanup restore_configuration rlRun "abrt-cli remove $crash_PATH" 0 rlBundleLogs #create test statistic + # copy all log to /tmp/ + cp -v p_abrt-cli*.log /tmp/ popd # TmpDir rm -rf $TmpDir export EDITOR=$orig_editor diff --git a/tests/p_abrt-cli/_expect_report b/tests/p_abrt-cli/_expect_report index 423dd3e..da2b81c 100755 --- a/tests/p_abrt-cli/_expect_report +++ b/tests/p_abrt-cli/_expect_report @@ -2,7 +2,7 @@ set dir [lindex $argv 0] -spawn report-cli -e report_CentOSBugTracker $dir +spawn report-cli -e report_CentOSBugTracker -vvv $dir set timeout 100 set workflow_no 3