Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: dm/DMReporter.cpp

Issue 29293003: DM: add --writePath (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: directory per config Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMReplayTask.cpp ('k') | dm/DMWriteTask.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMReporter.cpp
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp
index 7a0c20edd39762a25787c538a835cdc8bbbc78cb..3d9dae586247c48f49397a8b86fb38183a830d18 100644
--- a/dm/DMReporter.cpp
+++ b/dm/DMReporter.cpp
@@ -3,7 +3,13 @@
namespace DM {
void Reporter::updateStatusLine() const {
- SkDebugf("\r\033[K%d / %d, %d failed", this->finished(), this->started(), this->failed());
+ SkString status;
+ status.printf("\r\033[K%d / %d", this->finished(), this->started());
+ const int failed = this->failed();
+ if (failed > 0) {
+ status.appendf(", %d failed", failed);
+ }
+ SkDebugf(status.c_str());
}
int32_t Reporter::failed() const {
« no previous file with comments | « dm/DMReplayTask.cpp ('k') | dm/DMWriteTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698