jjb: lava: kprobe-fuzzing: Add random seed param for generation script
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 15 Mar 2018 16:21:42 +0000 (12:21 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 15 Mar 2018 18:48:49 +0000 (14:48 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
lava/system-tests/kprobe-fuzzing-generate-data.yml
scripts/system-tests/lava-submit.py

index d9d5e4964570df79b23f1b253d23669c963e8aea..cc4b3e3241b03a191f5ef19207e07b5e8bef1d7f 100644 (file)
@@ -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
index 682e2249e11cc7fe5229baf081330a6e564059fe..7de270335a1e47a03eaaaa2efbded257b023e872 100644 (file)
@@ -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
This page took 0.024882 seconds and 4 git commands to generate.