add printFile function
This commit is contained in:
parent
065e69b09f
commit
1079c71369
@ -164,6 +164,14 @@ void Runner::print(const QString &fh, const QString &content) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Runner::printFile(const QString &fileName, const QString &content) {
|
||||||
|
QFile *outputFile = new QFile(fileName);
|
||||||
|
outputFile->open(QIODevice::WriteOnly);
|
||||||
|
QTextStream ts(outputFile);
|
||||||
|
ts << qPrintable(content);
|
||||||
|
ts.flush();
|
||||||
|
}
|
||||||
|
|
||||||
void Runner::finishSuite() {
|
void Runner::finishSuite() {
|
||||||
isFinished = true;
|
isFinished = true;
|
||||||
runs = 0;
|
runs = 0;
|
||||||
|
@ -40,6 +40,7 @@ class Runner: public QObject {
|
|||||||
QString getSeed();
|
QString getSeed();
|
||||||
|
|
||||||
void print(const QString &fh, const QString &content);
|
void print(const QString &fh, const QString &content);
|
||||||
|
void printFile(const QString &fileName, const QString &content);
|
||||||
void finishSuite();
|
void finishSuite();
|
||||||
void ping();
|
void ping();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user