aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-05-16 15:20:36 +0200
committerKarel Kočí <cynerd@email.cz>2015-05-16 15:20:36 +0200
commit072937a4f2e8c64b2d05526c3e6ce412da1954f7 (patch)
treeacb02f21ae0a31ed63a2764780626a8c13737bf4
parent65c98d1fb0d9447254dcf5013c42cc23b74cdf82 (diff)
downloadlinux-conf-perf-072937a4f2e8c64b2d05526c3e6ce412da1954f7.tar.gz
linux-conf-perf-072937a4f2e8c64b2d05526c3e6ce412da1954f7.tar.bz2
linux-conf-perf-072937a4f2e8c64b2d05526c3e6ce412da1954f7.zip
Fix NoAppliableSolution in loop and changed looping phase
-rwxr-xr-xscripts/loop.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/loop.py b/scripts/loop.py
index 9cae754..0fd3639 100755
--- a/scripts/loop.py
+++ b/scripts/loop.py
@@ -33,7 +33,15 @@ def step():
phase_set(5)
elif phs == 5:
phase_message(5)
- solution.apply()
+ try:
+ solution.apply()
+ except exceptions.NoApplicableSolution:
+ try:
+ os.mkdir(sf(conf.result_folder))
+ except FileExistsError:
+ pass
+ print('\nAll done.')
+ exit(0)
phase_set(6)
elif phs == 6:
phase_message(6)
@@ -50,7 +58,7 @@ def step():
elif phs == 8:
phase_message(8)
if conf.only_config:
- phase_set(2)
+ phase_set(3)
else:
phase_set(9)
elif phs == 9:
@@ -66,7 +74,7 @@ def step():
phase_set(12)
elif phs == 12:
phase_message(12)
- phase_set(2)
+ phase_set(3)
# Phase #
phases = ("Not Initialized", #0