Skip to content

Commit

Permalink
bin/bittest: Make fatal errors bb.fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
zecke committed Apr 13, 2007
1 parent 21e38b7 commit 350da44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/bittest
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ def start_testing():
cook.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) )
data = _load_config('bitbake.conf')
if data == None:
bb.error("Could not parse the bitbake.conf")
bb.fatal("Could not parse the bitbake.conf")
elif bb.data.getVar('BITBAKETEST_BITBAKE_CONF', data ) == None:
bb.error("You are not using the bitbake.conf from bittest please check your BBPATH")
bb.fatal("You are not using the bitbake.conf from bittest please check your BBPATH")

bb.data.inheritFromOS(data)

# Parse the test configuration
test_config = _load_config('testrun.conf')
if test_config == None:
bb.error("Could not parse the bittest configuration file")
bb.fatal("Could not parse the bittest configuration file")
test_options = parse_test_options(test_config)

# start running the test
Expand Down

0 comments on commit 350da44

Please sign in to comment.