summaryrefslogtreecommitdiff
path: root/bin/explore-kconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/explore-kconfig.py')
-rwxr-xr-xbin/explore-kconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/explore-kconfig.py b/bin/explore-kconfig.py
index 7602076..5b4bdc6 100755
--- a/bin/explore-kconfig.py
+++ b/bin/explore-kconfig.py
@@ -96,12 +96,13 @@ def main():
for i in range(args.random):
logging.info(f"Running randconfig {i+1} of {args.random}")
status = kconf.run_randconfig()
- if status["success"]:
+ if args.with_neighbourhood and status["success"]:
config_filename = status["config_path"]
logging.info(f"Exploring neighbourhood of {config_filename}")
kconf.run_exploration_from_file(config_filename)
if args.neighbourhood:
+ # TODO also explore range of numeric options
if os.path.isfile(args.neighbourhood):
kconf.run_exploration_from_file(args.neighbourhood)
elif os.path.isdir(args.neighbourhood):