# HG changeset patch # User Richard Taylor # Date 1272544320 -3600 # Node ID b4aaa46b1bebd51287ccc6e654244db5f214b241 # Parent ae2462f67a305d01a692dac80a0be4e530ec56a6 refactor tools2 for --query diff -r ae2462f67a30 -r b4aaa46b1beb sbsv2/raptor/lib/config/gcc.xml --- a/sbsv2/raptor/lib/config/gcc.xml Thu Apr 29 11:10:13 2010 +0100 +++ b/sbsv2/raptor/lib/config/gcc.xml Thu Apr 29 13:32:00 2010 +0100 @@ -74,7 +74,8 @@ - + + diff -r ae2462f67a30 -r b4aaa46b1beb sbsv2/raptor/test/smoke_suite/query_cli.py --- a/sbsv2/raptor/test/smoke_suite/query_cli.py Thu Apr 29 11:10:13 2010 +0100 +++ b/sbsv2/raptor/test/smoke_suite/query_cli.py Thu Apr 29 13:32:00 2010 +0100 @@ -14,11 +14,11 @@ # Description: # -from raptor_tests import SmokeTest +import raptor_tests def run(): - t = SmokeTest() + t = raptor_tests.SmokeTest() t.description = "Test the --query command-line option" t.name = "query_cli_alias" @@ -78,10 +78,16 @@ t.name = "query_cli_config_others" t.command = "sbs --query=config[winscw_urel] --query=config[tools2_rel]" + + if t.onWindows: + t2 = "tools2" + else: + t2 = raptor_tests.ReplaceEnvs("tools2/$(HOSTPLATFORM_DIR)") + t.mustmatch_singleline = [ "", "outputpath='.*/epoc32/release/winscw/urel'", - "outputpath='.*/epoc32/release/tools2/rel'", + "outputpath='.*/epoc32/release/%s/rel'" % t2, "" ] t.mustnotmatch_singleline = []