From 2edc1883b2b62327516d91f8cdaac939570c3384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 14 May 2015 17:37:18 +0200 Subject: Fix booting process and test target Test target wasn't working properly. Now it should work. --- scripts/test.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'scripts/test.py') 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 - ################################################################################# -- cgit v1.2.3