Skip to content

Commit

Permalink
runtests.py: refine the coding style
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Sun <[email protected]>
  • Loading branch information
ysun committed Jul 5, 2024
1 parent 2bf5239 commit 57d8422
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions BM/runtests.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#!/usr/bin/python3
import sys
from avocado.core.nrunner.runnable import Runnable
from avocado.core.suite import TestSuite
from avocado.core.job import Job
import subprocess
import argparse
import os
import shlex
from avocado.core.job import Job
from avocado.core.nrunner.runnable import Runnable
from avocado.core.suite import TestSuite
import sys
import os

# Parse command line arguments.
parser = argparse.ArgumentParser(description='Run tests from a list in a file(tests/tests-client/tests-server).')
parser.add_argument('-f', '--feature', help='Directory of a feature to run the tests')
parser.add_argument('-t', '--tests', help='Path to a test file containing the list of tests to run')
parser = argparse.ArgumentParser(description='Run tests from a list in a file(tests).')
parser.add_argument('-f', '--feature', required=True,
help='Directory of a feature to run the tests')
parser.add_argument('-t', '--tests', required=True,
help='Path to a test file containing the list of tests to run')
args = parser.parse_args()

BM_dir = os.path.dirname(os.path.realpath(__file__))
Expand Down

0 comments on commit 57d8422

Please sign in to comment.