File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,22 @@ def test_forall(west_init_tmpdir):
425425 ]
426426
427427
428+ @pytest .mark .parametrize ("jobs" , ["-j 1" , "-j 2" , "-j" ])
429+ def test_forall_jobs (jobs , west_init_tmpdir ):
430+ # 'forall' with no projects cloned shouldn't fail
431+ output = cmd (['forall' , jobs , '-c' , '' ]).splitlines ()
432+ assert '=== running "" in manifest (zephyr):' in output
433+
434+ cmd ('update net-tools Kconfiglib' )
435+
436+ # print order is no longer guaranteed when there are multiple projects
437+ output = cmd (['forall' , jobs , '-c' , '' ]).splitlines ()
438+
439+ assert '=== running "" in manifest (zephyr):' in output
440+ assert '=== running "" in net-tools (net-tools):' in output
441+ assert '=== running "" in Kconfiglib (subdir/Kconfiglib):' in output
442+
443+
428444def test_grep (west_init_tmpdir ):
429445 # Make sure we don't find things we don't expect, and do find
430446 # things we do.
You can’t perform that action at this time.
0 commit comments