提交 58d5885d 编写于 作者: C Cleber Rosa

Varianter CIT test: use BASEDIR from selftests module

I clearly missed that on 71d915dd, as there's no point of using
a locally defined "basedir" and the one from the sefltests module.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 b44609ba
......@@ -8,19 +8,14 @@ from avocado.utils import process
from selftests import AVOCADO, BASEDIR, temp_dir_prefix
basedir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', '..')
basedir = os.path.abspath(basedir)
class Variants(unittest.TestCase):
def test_max_variants(self):
os.chdir(basedir)
os.chdir(BASEDIR)
cmd_line = (
'{0} variants --cit-order-of-combinations=5 '
'--cit-parameter-file examples/varianter_cit/params.ini'
).format(AVOCADO)
os.chdir(basedir)
result = process.run(cmd_line)
lines = result.stdout.splitlines()
self.assertEqual(b'CIT Variants (216):', lines[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册