]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix if generated existing configuration
authorKarel Kočí <cynerd@email.cz>
Wed, 12 Aug 2015 13:48:19 +0000 (15:48 +0200)
committerKarel Kočí <cynerd@email.cz>
Thu, 13 Aug 2015 08:12:20 +0000 (10:12 +0200)
When some generator tries to register already generated solution, it
shouldn't be registered.

scripts/configurations.py

index c58f3f5a715e78cdd1bf6c3e7d4c84fedc1cfa6a..29095783073529ccf9857c700bc5b4f22d45d46c 100644 (file)
@@ -149,6 +149,7 @@ def __register_conf__(con, conf_num, generator):
        if os.path.isfile(filen):
                if compare(filen, wfile):
                        print("I: Generated existing configuration.")
+                       return
                else:
                        print("W: Generated configuration with collision hash.")
                        # TODO this might have to be tweaked