From 78cb511cbcd5942bd22724f0ac3be561429e538f Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Thu, 15 Mar 2018 12:21:42 -0400 Subject: [PATCH] jjb: lava: kprobe-fuzzing: Add random seed param for generation script Signed-off-by: Francis Deslauriers --- lava/system-tests/kprobe-fuzzing-generate-data.yml | 4 +++- scripts/system-tests/lava-submit.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lava/system-tests/kprobe-fuzzing-generate-data.yml b/lava/system-tests/kprobe-fuzzing-generate-data.yml index d9d5e49..cc4b3e3 100644 --- a/lava/system-tests/kprobe-fuzzing-generate-data.yml +++ b/lava/system-tests/kprobe-fuzzing-generate-data.yml @@ -7,8 +7,10 @@ install: - url: https://github.com/lttng/lttng-ci destination: ci branch: master +params: + RANDOM_SEED=12345 run: steps: - cd ci/ - - lava-test-case generate-fuzzing-data --shell "python3 ./scripts/system-tests/run-kprobe-generate-instr-points.py $((1 + RANDOM))" + - lava-test-case generate-fuzzing-data --shell "python3 ./scripts/system-tests/run-kprobe-generate-instr-points.py $RANDOM_SEED" - sync diff --git a/scripts/system-tests/lava-submit.py b/scripts/system-tests/lava-submit.py index 682e224..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 -- 2.34.1