# HG changeset patch # User Richard Taylor # Date 1267523665 0 # Node ID 2db10eac415a4acbc3a1a257a4659ce7dd5f1b94 # Parent c86748d54051c222ea3b59b149fc71eb79d90239 test data for bad groups diff -r c86748d54051 -r 2db10eac415a sbsv2/raptor/python/raptor.py --- a/sbsv2/raptor/python/raptor.py Thu Feb 25 16:02:22 2010 +0000 +++ b/sbsv2/raptor/python/raptor.py Tue Mar 02 09:54:25 2010 +0000 @@ -889,7 +889,6 @@ buildUnitsToBuild = set() - for c in set(configNames): self.Debug("BuildUnit: %s", c) try: diff -r c86748d54051 -r 2db10eac415a sbsv2/raptor/python/raptor_data.py --- a/sbsv2/raptor/python/raptor_data.py Thu Feb 25 16:02:22 2010 +0000 +++ b/sbsv2/raptor/python/raptor_data.py Tue Mar 02 09:54:25 2010 +0000 @@ -1026,7 +1026,7 @@ def GenerateBuildUnits(self, cache): units = [] - + missing_variants = [] for r in self.childRefs: refMods = r.GetModifiers(cache) @@ -1055,7 +1055,7 @@ Reference.__init__(self, ref) def __str__(self): - return "<%s />" % (prefix, self.ref, ".".join(self.modifiers)) + return "" % (self.ref, ".".join(self.modifiers)) def Resolve(self, cache): try: diff -r c86748d54051 -r 2db10eac415a sbsv2/raptor/test/smoke_suite/keepgoing.py --- a/sbsv2/raptor/test/smoke_suite/keepgoing.py Thu Feb 25 16:02:22 2010 +0000 +++ b/sbsv2/raptor/test/smoke_suite/keepgoing.py Tue Mar 02 09:54:25 2010 +0000 @@ -21,7 +21,7 @@ t.description = """Raptor should keep going and build as much as possible with the -k option specified.""" command = "sbs -b smoke_suite/test_resources/simple/bld.inf -k" - + config = " --configpath=test/smoke_suite/test_resources/keepgoing" targets = [ "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe", "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map", @@ -75,6 +75,16 @@ t.returncode = 1 t.run() + # using groups with bad sub-groups should build any independent groups + t.id = "115b" + t.name = "keepgoing_bad_subgroup" + t.command = command + config + " -c lots_of_products" + t.mustmatch = ["sbs: error: Unknown build configuration 'armv5.bogus'"] + t.warnings = 0 + t.errors = 1 + t.returncode = 1 + t.run() + # summarise t.id = "115" t.name = "keepgoing" diff -r c86748d54051 -r 2db10eac415a sbsv2/raptor/test/smoke_suite/test_resources/keepgoing/groups.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/test_resources/keepgoing/groups.xml Tue Mar 02 09:54:25 2010 +0000 @@ -0,0 +1,16 @@ + + + + + + + + + + + + +