Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmt tests convert traceback for stray Makefile #108

Closed
lukaszachy opened this issue Feb 13, 2020 · 0 comments
Closed

tmt tests convert traceback for stray Makefile #108

lukaszachy opened this issue Feb 13, 2020 · 0 comments
Assignees
Labels
bug Something isn't working command | import The import command

Comments

@lukaszachy
Copy link
Collaborator

When you run tmt tests convert in directory which has Makefile but it is not Beakerlib one you get traceback. For example if it is ran from tmt directory:

$ tmt tests convert
Checking the '/home/lzachar/_important_/Gits/tmt' directory.
Makefile found in '/home/lzachar/_important_/Gits/tmt/Makefile'.
Traceback (most recent call last):
  File "/home/lzachar/.virtualenvs/tmt/bin/tmt", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/home/lzachar/_important_/Gits/tmt/bin/tmt", line 11, in <module>
    tmt.cli.main()
  File "/home/lzachar/.virtualenvs/tmt/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/lzachar/.virtualenvs/tmt/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/lzachar/.virtualenvs/tmt/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/lzachar/.virtualenvs/tmt/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/lzachar/.virtualenvs/tmt/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/lzachar/.virtualenvs/tmt/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/lzachar/.virtualenvs/tmt/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/lzachar/_important_/Gits/tmt/tmt/cli.py", line 447, in convert
    common, individual = tmt.convert.read(path, makefile, nitrate, purpose)
  File "/home/lzachar/_important_/Gits/tmt/tmt/convert.py", line 77, in read
    beaker_task = re.search('export TEST=(.*)\n', content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
@lukaszachy lukaszachy added the bug Something isn't working label Feb 13, 2020
hegerj added a commit that referenced this issue Feb 26, 2020
@psss psss self-assigned this Feb 26, 2020
@psss psss added the command | import The import command label Feb 26, 2020
@psss psss closed this as completed in 0371c3a Feb 26, 2020
@psss psss changed the title tmt tests convert tracaback for stray Makefile tmt tests convert traceback for stray Makefile Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command | import The import command
Projects
None yet
Development

No branches or pull requests

2 participants