Skip to content

Commit 50aa184

Browse files
laura-naonuclearcat
authored andcommitted
config/v4l2-decoder-conformance: set decoding timeout in fluster
Use -t option in fluster to set a timeout for each decoding. Keep 30s as default value. Signed-off-by: Laura Nao <[email protected]>
1 parent e862657 commit 50aa184

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config/lava/v4l2-decoder-conformance/v4l2-decoder-conformance.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- functional
1414
run:
1515
steps:
16-
- python3 /usr/bin/fluster_parser.py -ts {{ testsuite }}
16+
- python3 /usr/bin/fluster_parser.py -ts {{ testsuite }} -t {{ videodec_timeout|default('30') }}
1717
from: inline
1818
name: {{ plan }}
1919
path: inline/{{ plan }}.yaml

config/rootfs/debos/overlays/fluster/usr/bin/fluster_parser.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ def _load_results_file(filename):
6767
return ret
6868

6969

70-
def _run_fluster(test_suite=None):
70+
def _run_fluster(test_suite=None, timeout=None):
7171
cmd = ['python3', 'fluster.py', '-ne', 'run',
7272
'-j1', '-f', 'junitxml', '-so', RESULTS_FILE]
7373

7474
if test_suite:
7575
cmd.extend(['-ts', test_suite])
76+
if timeout:
77+
cmd.extend(['-t', timeout])
7678

7779
subprocess.run(cmd, cwd=FLUSTER_PATH, check=False)
7880

@@ -87,7 +89,7 @@ def main(args):
8789
cmd = cmd.fromkeys(cmd, 'echo')
8890

8991
# run fluster tests
90-
_run_fluster(args.test_suite)
92+
_run_fluster(args.test_suite, args.timeout)
9193

9294
# load test results
9395
junitxml = _load_results_file(f'{FLUSTER_PATH}/{RESULTS_FILE}')
@@ -119,5 +121,6 @@ def main(args):
119121
if __name__ == '__main__':
120122
parser = argparse.ArgumentParser()
121123
parser.add_argument('-ts', '--test-suite')
124+
parser.add_argument('-t', '--timeout')
122125
args = parser.parse_args()
123126
sys.exit(main(args))

0 commit comments

Comments
 (0)