aboutsummaryrefslogtreecommitdiff
path: root/scripts/test.py
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-05-14 17:37:18 +0200
committerKarel Kočí <cynerd@email.cz>2015-05-14 17:37:18 +0200
commit2edc1883b2b62327516d91f8cdaac939570c3384 (patch)
tree3b0027c5a704e8e259e2faeb1d0213ecdf93f03c /scripts/test.py
parent530150b34aa7dd901fe64698e6de3345588a0390 (diff)
downloadlinux-conf-perf-2edc1883b2b62327516d91f8cdaac939570c3384.tar.gz
linux-conf-perf-2edc1883b2b62327516d91f8cdaac939570c3384.tar.bz2
linux-conf-perf-2edc1883b2b62327516d91f8cdaac939570c3384.zip
Fix booting process and test target
Test target wasn't working properly. Now it should work.
Diffstat (limited to 'scripts/test.py')
-rwxr-xr-xscripts/test.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/scripts/test.py b/scripts/test.py
index a69c5b7..5b94df2 100755
--- a/scripts/test.py
+++ b/scripts/test.py
@@ -5,32 +5,17 @@ import sys
from conf import conf
from conf import sf
import initialize
-import iteration
import kernel
import boot
def test():
+ initialize.base()
initialize.parse_kconfig()
initialize.gen_requred() # Call this to check initial solution
- iteration.reset() # Reset iteration
conf.kernel_make_output = True
kernel.make()
conf.boot_output = True
boot.boot()
- print('------------------------------')
- for nm in os.listdir(sf(conf.output_folder)):
- if os.path.isfile(os.path.join(sf(conf.output_folder), nm)):
- with open(os.path.join(sf(conf.output_folder), nm), 'r') as f:
- print(nm + ':')
- for line in f:
- print(line, end='')
- os.remove(os.path.join(sf(conf.output_folder), nm))
- # To be sure also try remove other file
- try:
- os.remove(sf(conf.solved_file))
- except OSError:
- pass
-
#################################################################################