Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix crash when listing tests with groups being skipped #46

Closed
wants to merge 2 commits into from

Conversation

rn
Copy link
Member

@rn rn commented Apr 23, 2018

rtf list for some reason returns a Result object which in turn references a Test object. For skipped groups, there is not Test object and the listing fails. This PR adds a fake/dummy Test to the Result of skipped groups when listing.

Ideally we would not return a Result object on listing the test...

resolves #45

rn added 2 commits April 23, 2018 10:40
The 'p.List()' function returns a list of results not tests,
rename the variable to 'r' as it seems more appropriate.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This fixes an issue (linuxkit#45),
where, if an entire group get's skipped `rtf list` would crash.

This does not seem quite like the right solution and we should
probably restructure the code considerably to *not* return
a test object when just listing the tests...

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
@rn
Copy link
Member Author

rn commented Apr 23, 2018

Some of the tests fail. This is getting too ugly and I'll fix it better with List not returning a Result but something else. Closing for now

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recent changes broke LinuxKit tests
1 participant