X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fsystem-tests%2Flava-submit.py;h=7de270335a1e47a03eaaaa2efbded257b023e872;hb=78cb511cbcd5942bd22724f0ac3be561429e538f;hp=62df12b171bbd39d9b0fd89d3327a9e7573f4ffc;hpb=829730ddf34f53765cde98bdb23da79e18cc67b7;p=lttng-ci.git diff --git a/scripts/system-tests/lava-submit.py b/scripts/system-tests/lava-submit.py index 62df12b..7de2703 100644 --- a/scripts/system-tests/lava-submit.py +++ b/scripts/system-tests/lava-submit.py @@ -18,6 +18,7 @@ import argparse import base64 import json import os +import random import sys import time import xmlrpc.client @@ -269,6 +270,7 @@ def get_kvm_tests_cmd(): return command def get_kprobes_generate_data_cmd(): + random_seed = random.randint(0, 1000000) command = OrderedDict({ 'command': 'lava_test_shell', 'parameters': { @@ -276,7 +278,8 @@ def get_kprobes_generate_data_cmd(): { 'git-repo': 'https://github.com/lttng/lttng-ci.git', 'revision': 'master', - 'testdef': 'lava/system-tests/kprobe-fuzzing-generate-data.yml' + 'testdef': 'lava/system-tests/kprobe-fuzzing-generate-data.yml', + 'parameters': { 'RANDOM_SEED': str(random_seed) } } ], 'timeout': 60 @@ -284,7 +287,7 @@ def get_kprobes_generate_data_cmd(): }) return command -def get_kprobes_test_cmd(): +def get_kprobes_test_cmd(round_nb): command = OrderedDict({ 'command': 'lava_test_shell', 'parameters': { @@ -292,10 +295,11 @@ def get_kprobes_test_cmd(): { 'git-repo': 'https://github.com/lttng/lttng-ci.git', 'revision': 'master', - 'testdef': 'lava/system-tests/kprobe-fuzzing-tests.yml' + 'testdef': 'lava/system-tests/kprobe-fuzzing-tests.yml', + 'parameters': { 'ROUND_NB': str(round_nb) } } - ], - 'timeout': 7200 + ], + 'timeout': 1000 } }) return command @@ -464,7 +468,8 @@ def main(): return -1 j['actions'].append(get_config_cmd('kvm')) j['actions'].append(get_kprobes_generate_data_cmd()) - j['actions'].append(get_kprobes_test_cmd()) + for i in range(10): + j['actions'].append(get_kprobes_test_cmd(round_nb=i)) j['actions'].append(get_results_cmd(stream_name='tests-kernel')) else: assert False, 'Unknown test type'