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

Multiple run name by using regex at cmd #1322

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

csordasmarton
Copy link
Contributor

User can get command line results for multiple runs by using Python regex expression.

@csordasmarton csordasmarton added enhancement 🌟 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands labels Jan 24, 2018
@csordasmarton csordasmarton added this to the release 6.5 milestone Jan 24, 2018
@csordasmarton csordasmarton requested a review from gyorb January 24, 2018 15:59
@@ -48,39 +48,35 @@ def test_filter_run_names(self):
"There should be two runs for this test.")

# Filter runs which name starts with `test_files_`.
test_runs = self.__get_runs('test_files_')
test_runs = self.__get_runs('test_files_*')
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a test where there is no '*' in the run name?

self.assertEqual(len(test_runs), 1,
"There should be one run for this test.")

# Filter runs which name contains `test_files*`.
test_runs = self.__get_runs('test_files*')
self.assertEqual(len(test_runs), 1,
self.assertEqual(len(test_runs), 2,
"There should be one run for this test.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the message of the assert here.

test_runs = self.__get_runs('%')
self.assertEqual(len(test_runs), 1,
self.assertEqual(len(test_runs), 0,
"There should be one run for this test.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the message of the assert here.

User can get command line results for multiple runs by using Python
regex expression.
@gyorb gyorb merged commit 1396c40 into Ericsson:master Feb 5, 2018
@csordasmarton csordasmarton deleted the cmd-regex-run-names branch February 15, 2018 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands enhancement 🌟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants