Skip to content

Commit

Permalink
Fixed testcase and some small other things
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Florath committed Mar 23, 2012
1 parent e36b86f commit cf51f9f
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/Config1.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"constraints_dirs": [ "rmtoo/collection/constraints" ] }
],
[
"git", {
"ignore:git", {
"start_vers": "v21",
"end_vers": "v22",
"requirements_dirs": [ "doc/requirements" ],
Expand Down
4 changes: 2 additions & 2 deletions rmtoo/lib/Output.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __create_output_module(self, output_name):

def __common_topic_continuum_pre(self, topic_continuum, special):
'''Common method used by cmad_ and normal callback.'''
tracer.debug("Called.")
tracer.info("Called.")
output_config = topic_continuum.get_output_config()

for oconfig_name, oconfig in output_config.iteritems():
Expand All @@ -53,7 +53,7 @@ def __common_topic_continuum_pre(self, topic_continuum, special):
FuncCall.pcall(output_obj, "init_" + special,
self.__cmad_file)
topic_continuum.execute(output_obj, special)
tracer.debug("Finished.")
tracer.info("Finished.")

def topic_continuum_pre(self, topic_continuum):
'''This is called in the TopicsContinuum pre-phase.'''
Expand Down
2 changes: 1 addition & 1 deletion rmtoo/lib/RequirementSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def __read_one_testcase(self, fileinfo, input_mods, object_cache):
if testcase == None:
file_content = fileinfo.get_content()
testcase = TestCase(file_content, rid, fileinfo.get_filename(),
self, input_mods, self._config)
input_mods, self._config)
# Add the requirement to the cache.
object_cache.add(vcs_id, "TestCase", testcase)

Expand Down
4 changes: 2 additions & 2 deletions rmtoo/lib/TestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

class TestCase(BaseRMObject):

def __init__(self, content, rid, file_path, mls, mods, config):
def __init__(self, content, rid, file_path, mods, config):
BaseRMObject.__init__(self, InputModuleTypes.testcase, content,
rid, mls, mods,
rid, mods,
config, "testcases", file_path)

11 changes: 10 additions & 1 deletion rmtoo/lib/analytics/DescWords.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_lang(config):

if def_lang in DescWords.words:
return DescWords.words[def_lang]
tracer.warn("Language [%s] not suppurted, using en_GB." % def_lang)
tracer.warn("Language [%s] not supported, using en_GB." % def_lang)
return DescWords.words["en_GB"]

@staticmethod
Expand All @@ -100,6 +100,15 @@ def analyse(lname, lwords, text):
# Note the result of this test in the requirement itself.
return Result('DescWords', lname, level, log)

def topic_continuum_set_sort(self, list_to_sort):
'''Can only handle from the last version.'''
return [list_to_sort[-1]]

def topic_continuum_sort(self, vcs_commit_ids, topic_sets):
'''Because graph2 can only one topic continuum,
the latest (newest) is used.'''
return [ topic_sets[vcs_commit_ids[-1].get_commit()] ]

def requirement_set_sort(self, list_to_sort):
'''Sort by id.'''
return sorted(list_to_sort, key=lambda r: r.id)
Expand Down
2 changes: 1 addition & 1 deletion rmtoo/outputs/latex2.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class latex2(StdOutputParams, ExecutorTopicContinuum, CreateMakeDependencies):

def __init__(self, oconfig):
'''Create a graph output object.'''
tracer.debug("Called.")
tracer.info("Called.")
StdOutputParams.__init__(self, oconfig)
CreateMakeDependencies.__init__(self)
self.__ce3set = None
Expand Down
2 changes: 1 addition & 1 deletion rmtoo/outputs/prios.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class prios(StdOutputParams, ExecutorTopicContinuum, CreateMakeDependencies):

def __init__(self, oconfig):
'''Create a prios output object.'''
tracer.debug("Called.")
tracer.info("Called.")
StdOutputParams.__init__(self, oconfig)
CreateMakeDependencies.__init__(self)

Expand Down
2 changes: 1 addition & 1 deletion rmtoo/outputs/stats_burndown1.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class stats_burndown1(StdOutputParams, ExecutorTopicContinuum,

def __init__(self, oconfig):
'''Create a graph output object.'''
tracer.debug("Called.")
tracer.info("Called.")
StdOutputParams.__init__(self, oconfig)
CreateMakeDependencies.__init__(self)

Expand Down
2 changes: 1 addition & 1 deletion rmtoo/outputs/stats_sprint_burndown1.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class stats_sprint_burndown1(StdOutputParams, ExecutorTopicContinuum,

def __init__(self, oconfig):
'''Create a graph output object.'''
tracer.debug("Called.")
tracer.info("Called.")
StdOutputParams.__init__(self, oconfig)
CreateMakeDependencies.__init__(self)

Expand Down

0 comments on commit cf51f9f

Please sign in to comment.