texttest crashes with stacktrace when running reconnect

Bug #1651662 reported by Emily Bache
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TextTest
New
Undecided
Unassigned

Bug Description

I am starting texttest with the following arguments:

['-reconnect', '-g', '/home/emilyb/.texttest/tmp/characterize.31Aug125530.24613', '-a', 'characterize', '-d', '/home/emilyb/workspace/pagero/pageroonline/test/po-characterize-tests/src/it/texttest:/home/emilyb/workspace/pagero/pageroonline/test/po-characterize-tests/target/texttest_extra_config', '-c', '/home/emilyb/workspace/pagero/pageroonline/test/po-characterize-tests']

All those paths are correct on my machine.

Texttest fails to start and I get this stack trace:

----
Traceback (most recent call last):
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/testmodel.py", line 1477, in __call__
    return self.targetCall(*args, **kwargs)
TypeError: getExtraVersions() takes exactly 2 arguments (1 given)

Traceback (most recent call last):
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/testmodel.py", line 1477, in __call__
    return self.targetCall(*args, **kwargs)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/default/__init__.py", line 220, in getExtraVersions
    fromCmd = self.getExtraVersionsFromCmdLine(app, fromConfig)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/default/__init__.py", line 234, in getExtraVersionsFromCmdLine
    return self.reconnectConfig.getExtraVersions(app, fromConfig)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/default/reconnect.py", line 74, in getExtraVersions
    return self.getVersionsFromDirs(app, runDirs, givenExtras)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/default/reconnect.py", line 190, in getVersionsFromDirs
    datedVersions = sorted(datedVersionMap.keys(), key=self.dateValue, reverse=True)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/default/reconnect.py", line 212, in dateValue
    yearlessDatetime = datetime.datetime.strptime(version, "%d%b%H%M%S")
  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data '6_from_16aug190213' does not match format '%d%b%H%M%S'
Traceback (most recent call last):
  File "/usr/local/bin/texttest", line 30, in <module>
    program.run()
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/engine.py", line 370, in run
    self._run()
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/engine.py", line 379, in _run
    appFindingWroteError, allApps = self.findApps()
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/engine.py", line 202, in findApps
    subRaisedError, apps = self.findAppsUnder(dir, selectedAppDict, ignoreNames)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/engine.py", line 248, in findAppsUnder
    app, currExtra = self.addApplication(appName, dircache, appVersions, versionList)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/engine.py", line 269, in addApplication
    for extraVersion in app.getExtraVersions():
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/testmodel.py", line 1483, in __call__
    return self(self.app, *args, **kwargs)
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/testmodel.py", line 1488, in __call__
    self.raiseException()
  File "/home/emilyb/.local/lib/python2.7/site-packages/texttestlib/testmodel.py", line 1497, in raiseException
    raise BadConfigError, message
texttestlib.testmodel.BadConfigError: Exception thrown by 'default' configuration, while requesting 'getExtraVersions'

----

If I omit the '-reconnect' argument then it starts the texttest gui correctly, running my tests.

Seems like a bug in the code that parses my config files? I have one on each of the two paths specified with the -d argument. It seems to work fine if I instead have only one path specified with -d.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.