On Sat, Feb 15, 2014 at 6:45 AM, Henry Gessau <ges...@cisco.com> wrote: > On Sat, Feb 15, at 4:41 am, Akhil Sadashiv Hingane wrote: > >> >> When I try to run the test cases for ceilometer, it fails with >> >> ------------------------------------------------------------------------------------------------ >> >> Traceback (most recent call last): >> File "/usr/local/bin/tox", line 9, in <module> >> load_entry_point('tox==1.7.0', 'console_scripts', 'tox')() >> File "/usr/local/lib/python2.7/dist-packages/tox/_cmdline.py", line 25, in >> main >> config = parseconfig(args, 'tox') >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 47, in >> parseconfig >> parseini(config, inipath) >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 281, in >> __init__ >> config) >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 346, in >> _makeenvconfig >> vc.commands = reader.getargvlist(section, "commands") >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 518, in >> getargvlist >> commandlist.append(self._processcommand(current_command)) >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 550, in >> _processcommand >> new_word = self._replace(word) >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 666, in >> _replace >> return RE_ITEM_REF.sub(self._replace_match, x) >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 662, in >> _replace_match >> return handler(match) >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 633, in >> _replace_substitution >> val = self._substitute_from_other_section(sub_key) >> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 627, in >> _substitute_from_other_section >> "substitution key %r not found" % key) >> tox.ConfigError: ConfigError: substitution key 'posargs' not found > > This happens with tox 1.7.0. You need to downgrade tox 1.6.1. > "sudo pip install -U tox=1.6.1" > > By they way, I googled for "openstack tox.ConfigError: ConfigError: > substitution key 'posargs' not found" and the first result gave me the > solution. >
And for those interested in more details the upstream tox bug can be found at [1] and my proposed fix is at [2]. [1] https://bitbucket.org/hpk42/tox/issue/150/posargs-configerror [2] https://bitbucket.org/hpk42/tox/pull-request/85/fix-command-expansion-and-parsing/diff Clark _______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev