1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 18:57:14 +01:00

see #1406 include installer log in the test failure message when test fails

This commit is contained in:
Vadim Kurland 2010-04-24 18:58:09 +00:00
parent 3360977c2d
commit 18a73c756e
2 changed files with 13 additions and 5 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 2833
#define BUILD_NUM 2834

View File

@ -118,13 +118,15 @@ echo "Testing policy activation script"
#include "instDialogInstallTest.h"
#include "unistd.h"
#include <QApplication>
#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QDebug>
#include <QMenuBar>
#include <QApplication>
#include <QCoreApplication>
#include <QTextBrowser>
#include "FWObjectClipboard.h"
@ -211,6 +213,10 @@ void instDialogInstallTest::testInstall1()
dlg->findChild<QPushButton*>("nextButton")->click();
QTreeWidget *list= dlg->findChild<QTreeWidget*>("fwWorkList");
QTextBrowser *processLogDisplay = dlg->findChild<QTextBrowser*>("procLogDisplay");
QVERIFY(list!=NULL);
QVERIFY(processLogDisplay!=NULL);
int waited = 0;
@ -251,7 +257,9 @@ void instDialogInstallTest::testInstall1()
for(int i=0; i<list->topLevelItemCount(); i++)
{
QVERIFY(list->topLevelItem(i)->text(1) == "Success");
QVERIFY2(list->topLevelItem(i)->text(1) == "Success",
QString("%1\n").arg(processLogDisplay->toPlainText()).toAscii().constData()
);
}
QString text = dlg->findChild<QTextBrowser*>("procLogDisplay")->toPlainText();