]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
teuthology-suite: add --seed option for repeatable random test 1182/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 16 Jun 2018 16:09:36 +0000 (00:09 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Jun 2018 16:22:19 +0000 (00:22 +0800)
commite5fd65aae93f24805bcb9f6ec8d7a913f11eeb1c
tree26938d222b4892f5c91eef70b2f613603a651447
parent03a97a47138b93c5972e68c2119fff9bc6daa9bb
teuthology-suite: add --seed option for repeatable random test

currently --rerun does not match tests of
'supported-random-distro$/ubuntu_latest.yaml' with
'supported-random-distro$/centos_latest.yaml'. the former could be part
of description of a failed test, the latter is a a part of job
description generated by build_matrix(). because the '$' operator
instructs theuthology to choose a random file under the directory ending
with '$', and we expand the '$' to a randomly picked file *before*
filtering the generated job list with the filter collected from the
failed tests, there is good chance that the job descriptions of the
failed jobs in self.args.filter_in cannot match with the randomly
generated ones.

so, we introduce an argument '--seed' for teuthology-suite for the
repeatable random test. this argument allows user to specify a seed for
tne RNG used by build_matrix().

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
scripts/suite.py
teuthology/suite/__init__.py
teuthology/suite/build_matrix.py
teuthology/suite/run.py