From f28f2636c6707e1a33bebacafd0486f4965978ea Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 5 Jul 2016 00:53:12 -0700 Subject: 3101 - purge .traces/ dir from repo history I'd been toying with this idea for some time now given how large the repo had been growing. The final straw was noticing that people cloning the repo were having to wait *5 minutes*! That's not good, particularly for a project with 'tiny' in its description. After purging .traces/ clone time drops to 7 seconds in my tests. Major issue: some commits refer to .traces/ but don't really change anything there. That could get confusing :/ Minor issues: a) I've linked inside commits on GitHub like a half-dozen times online or over email. Those links are now liable to eventually break. (I seem to recall GitHub keeps them around as long as they get used at least once every 60 days, or something like that.) b) Numbering of commits is messed up because some commits only had changes to the .traces/ sub-directory. --- 050scenario.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '050scenario.cc') diff --git a/050scenario.cc b/050scenario.cc index 8a9a57d4..b177cab9 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -145,7 +145,6 @@ void run_mu_scenario(const scenario& s) { bool not_already_inside_test = !Trace_stream; //? cerr << s.name << '\n'; if (not_already_inside_test) { - Trace_file = s.name; Trace_stream = new trace_stream; setup(); } @@ -161,12 +160,13 @@ void run_mu_scenario(const scenario& s) { // End Mu Test Teardown if (not_already_inside_test && Trace_stream) { teardown(); - ofstream fout((Trace_dir+Trace_file).c_str()); - fout << Trace_stream->readable_contents(""); - fout.close(); + if (Save_trace) { + ofstream fout("last_trace"); + fout << Trace_stream->readable_contents(""); + fout.close(); + } delete Trace_stream; Trace_stream = NULL; - Trace_file = ""; } Current_scenario = NULL; } -- cgit 1.4.1-2-gfad0