This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: test_display.py: if cnt suboption is missing, add it
Author:  Hans Verkuil <[email protected]>
Date:    Thu Jun 18 08:31:21 2026 +0200

It's confusing that running the stress tests without -a option
will use default cnt values, but with the -a option the cnt
suboption isn't added, even though that does happen with the
max-sleep suboption.

So 'test_display.py cec-stress' defaults to cnt=10000 for 10000
iterations, while 'test_display.py cec-stress -a repeats=1'
drops the 'cnt=10000' causing the test to run indefinitely.

Check if cnt= is present, and if not, add it back.

Signed-off-by: Hans Verkuil <[email protected]>

 contrib/test/test_display.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=1355f143676b53b874c53dd4f6430e17702ce5d2
diff --git a/contrib/test/test_display.py b/contrib/test/test_display.py
index e70ae2dc9a9e..e29d46d1a9fc 100755
--- a/contrib/test/test_display.py
+++ b/contrib/test/test_display.py
@@ -394,19 +394,27 @@ def main(args):
                     cnt = cnt + 1
 
             if args.command == "cec-stress":
+                stress_args = args.args
+                if not "cnt=" in stress_args:
+                    stress_args = stress_args + ",cnt=10000"
                 command = (f"cec-ctl -d{device} -t0"
-                           f" --stress-test-standby-wakeup-cycle {args.args} 
-w")
+                           f" --stress-test-standby-wakeup-cycle {stress_args} 
-w")
                 execute_cmd(command, std_log)
             elif args.command == "cec-stress-sleep":
                 sleep_args = args.args
+                if not "cnt=" in sleep_args:
+                    sleep_args = sleep_args + ",cnt=10000"
                 if not "max-sleep=" in sleep_args:
                     sleep_args = sleep_args + ",max-sleep=5"
                 command = (f"cec-ctl -d{device} -t0"
                            f" --stress-test-standby-wakeup-cycle {sleep_args} 
-w")
                 execute_cmd(command, std_log)
             elif args.command == "cec-stress-random":
+                random_args = args.args
+                if not "cnt=" in random_args:
+                    random_args = random_args + ",cnt=4000"
                 command = (f"cec-ctl -d{device} -t0"
-                           f" --stress-test-random-standby-wakeup-cycle 
{args.args} -w")
+                           f" --stress-test-random-standby-wakeup-cycle 
{random_args} -w")
                 execute_cmd(command, std_log)
             elif args.command == "cec-compliance":
                 command = f"cec-compliance -S -w -d{device} -r {tests_to_run}"
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to