[CRIU] [PATCH 1/2] zdtm.py: add --dry-run
Pavel Emelyanov
xemul at virtuozzo.com
Tue Mar 1 02:05:12 PST 2016
On 03/01/2016 02:56 AM, Tycho Andersen wrote:
> Mostly so I could test my -x pattern in the next patch, feel free to drop
> if you want, but maybe it'll be useful for someone else :)
Am I right that the goal is to just check what tests would be run after all
the exclude/checkskips/etc stuff passed?
> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
> ---
> test/zdtm.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/test/zdtm.py b/test/zdtm.py
> index 1ace919..5ead3ac 100755
> --- a/test/zdtm.py
> +++ b/test/zdtm.py
> @@ -988,6 +988,8 @@ class launcher:
>
> self.__nr += 1
> self.__show_progress()
> + if self.__opts['dry_run'] is True:
> + return
>
> nd = ('nocr', 'norst', 'pre', 'iters', 'page_server', 'sibling', \
> 'fault', 'keep_img', 'report', 'snaps', 'sat', \
> @@ -1371,6 +1373,7 @@ rp.add_argument("--freezecg", help = "Use freeze cgroup (path:state)")
> rp.add_argument("--user", help = "Run CRIU as regular user", action = 'store_true')
>
> rp.add_argument("--page-server", help = "Use page server dump", action = 'store_true')
> +rp.add_argument("--dry-run", help="Don't run tests, just pretend to", action='store_true')
> rp.add_argument("-p", "--parallel", help = "Run test in parallel")
>
> rp.add_argument("-k", "--keep-img", help = "Whether or not to keep images after test",
>
More information about the CRIU
mailing list