diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-18 18:51:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-18 18:51:48 -0700 |
commit | a39df92d50347177e93a8828d133b57c7056c5f4 (patch) | |
tree | 011cba4cbc093f0a496ca035ea14e5785a422f7d /050scenario.cc | |
parent | 8ba8f0f6f268ede8f16f5b7f6c7b2470c836964c (diff) | |
download | mu-a39df92d50347177e93a8828d133b57c7056c5f4.tar.gz |
1401 - shave 80% off chessboard test time
It was all going to laboriously writing out 300+ MB to disk.
Diffstat (limited to '050scenario.cc')
-rw-r--r-- | 050scenario.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/050scenario.cc b/050scenario.cc index ee6485a9..c1895689 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -116,7 +116,7 @@ void run_mu_scenario(const scenario& s) { setup(); } run("recipe "+s.name+" [ " + s.to_run + " ]"); - if (not_already_inside_test) { + if (not_already_inside_test && Trace_stream) { teardown(); ofstream fout((Trace_dir+Trace_file).c_str()); fout << Trace_stream->readable_contents(""); |