Dumps the contents of all files in the sandbox to cout, assuming there are only text files.
| 242 | // Dumps the contents of all files in the sandbox to cout, assuming |
| 243 | // there are only text files. |
| 244 | static void logSandbox(const Path& path) |
| 245 | { |
| 246 | Try<list<string>> entries = os::ls(path.string()); |
| 247 | if (entries.isSome()) { |
| 248 | cout << "Begin listing sandbox `" << path.string() << "`:" << endl; |
| 249 | foreach (const string& entry, entries.get()) { |
| 250 | logFile(path, entry); |
| 251 | } |
| 252 | cout << "End sandbox" << endl; |
| 253 | } else { |
| 254 | cout << "Could not list sandbox `" << path.string() |
| 255 | << "`: " << entries.error() << endl; |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | |
| 260 | void FetcherCacheTest::verifyCacheMetrics() |