From: Esko Kokkonen Date: Thu, 5 Apr 2012 15:36:13 +0000 (+0300) Subject: Remove the simulation section X-Git-Url: http://git.itanic.dy.fi/?p=emerge-timer;a=commitdiff_plain;h=92b8538989611e428056e53fd15782d52e8586f2 Remove the simulation section --- diff --git a/emerge-timer.py b/emerge-timer.py index a11acbd..2a252f2 100755 --- a/emerge-timer.py +++ b/emerge-timer.py @@ -581,8 +581,8 @@ Options: \t-q, --quiet \t Be less verbose \t--no-color \t Use colorless output \t--plot \t\t Plot emerge times into a 2D scatter plot -\t\t\t (needs matlibplot installed for this to work) -\t--simulate \t Do a simulation run""" +\t\t\t (needs matlibplot installed for this to work)""" + print usage @@ -645,53 +645,4 @@ if __name__ == "__main__": else: usage() - if simulation == True: - - print(RED("\n" + '*'*25 + "\n" + "THIS IS A SIMULATION RUN\n" - + '*'*25 + "\n")) - - print(RED("Beginning 'package' mode check")) - - print(RED("Checking for one emerge\n")) - - LOGFILE = "simulate/fake_emerge.log" - PORTDIR = "simulate/" - - main("package", "first_fake_package") - - print(RED("\nChecking for three emerges\n")) - - main("package", "second_fake_package") - - print(RED("\n'package' mode check complete\n")) - - print(RED(30*'*')) - - print(RED("\nBeginning 'current' mode check")) - print(RED("Current emerge with no emerge process\n")) - - main("current", None) - - print(RED("\nCurrent emerge with emerge processes\n")) - - PACKAGES.append(package("test-group/second_fake_package", "2.9-r2")) - PACKAGES[0].emerge_time = 60 - PACKAGES.append(package("test-group/first_fake_package", "1.10.2-r1")) - PACKAGES[1].emerge_time = 120 - - main("current", None) - - print(RED("\nCurrent emerge with incomplete emerge log " + - "(causes error in some cases)\n")) - - PACKAGES = [] - PACKAGES.append(package("test-group/third_fake_package", "2.9-r2")) - - main("current", None) - - print(RED("\n" + '*'*20 + "\n" + "SIMULATION FINISHED\n" + - '*'*20)) - - - else: - main(mode, input_packages) + main(mode, input_packages)