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

Test control #968

Merged
merged 1 commit into from
Mar 21, 2018
Merged

Test control #968

merged 1 commit into from
Mar 21, 2018

Conversation

vladtcvs
Copy link
Contributor

No description provided.

@vladtcvs vladtcvs force-pushed the vlts-test-module branch 2 times, most recently from 38481b6 to 98072d5 Compare March 20, 2018 10:25
@@ -0,0 +1,89 @@
import unittest
from helpers import shell, remote

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Missing copyright.
  2. Need to document in Readme.md, why the file is needed, file docstring is required. Just to make clear that the file is not intended to be started manually

shell.testsuite_flatten(all_tests, loader.discover('.'))
self.v_level = v_level
self.tests = [TempestaTest(t) for t in all_tests]
remote.connect()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about nofile limit? Should it be defined here?

resource.setrlimit(resource.RLIMIT_NOFILE, (nofile, nofile))

testsuite = unittest.TestSuite(pending)
testRunner = unittest.runner.TextTestRunner(verbosity=self.v_level,
resultclass=self.__resultclass())
testRunner.run(testsuite)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can we care about kernel crashes? E.g. crash happens during one tests and all the following testa are failed.

@vladtcvs vladtcvs changed the title WIP: Test control Test control Mar 21, 2018
@vladtcvs vladtcvs merged commit 25fb836 into master Mar 21, 2018
@vladtcvs vladtcvs deleted the vlts-test-module branch March 21, 2018 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants