@@ -294,11 +294,11 @@ def addCondaTeardownTestEnvironmentSteps(factory):
294
294
[conda_lock .access ('exclusive' )]))
295
295
296
296
def addPythonUnittestSteps (factory , locks = default_locks ,
297
- extra_vars = {}, source_path = '.' ):
297
+ extra_vars = {}, test_path = '.' ):
298
298
factory .addStep (
299
299
ShellCommand (
300
300
name = 'python_unittest' ,
301
- command = ['python' , '-m' , 'unittest' , 'discover' , '-v' , source_path ],
301
+ command = ['python' , '-m' , 'unittest' , 'discover' , '-v' , test_path ],
302
302
description = 'testing' ,
303
303
descriptionDone = 'test' ,
304
304
haltOnFailure = True ,
@@ -307,13 +307,13 @@ def addPythonUnittestSteps(factory, locks=default_locks,
307
307
locks = locks ))
308
308
309
309
def addPythonCoverageSteps (factory , source_path , locks = default_locks ,
310
- extra_vars = {}):
310
+ extra_vars = {}), test_path = '.' ) :
311
311
factory .addStep (
312
312
ShellCommand (
313
313
name = 'python_unittest' ,
314
314
command = ['coverage' , 'run' , '--parallel-mode' ,
315
315
'--source' , source_path ,
316
- '-m' , 'unittest' , 'discover' , '-v' ],
316
+ '-m' , 'unittest' , 'discover' , '-v' , test_path ],
317
317
description = 'testing' ,
318
318
descriptionDone = 'test' ,
319
319
descriptionSuffix = 'unittest' ,
@@ -565,9 +565,9 @@ addCondaSetupTestEnvironmentSteps(artiqBuildFactory,
565
565
'migen' , 'misoc' ],
566
566
local_package = packageNameFromOutputName )
567
567
addPythonCoverageSteps (artiqBuildFactory ,
568
- source_path = 'artiq/test' )
568
+ source_path = 'artiq' , test_path = 'artiq /test' )
569
569
addPythonUnittestSteps (artiqBuildFactory ,
570
- source_path = 'artiq/gateware/test' )
570
+ test_path = 'artiq/gateware/test' )
571
571
addLitSteps (artiqBuildFactory ,
572
572
test_path = 'artiq/test/lit' ,
573
573
extra_vars = { 'COVERAGE' : '1' , 'PYTHONPATH' : '.' })
@@ -596,7 +596,7 @@ addARTIQFlashSteps(artiqBuildFactory,
596
596
'proxy' , 'gateware' , 'bios' , 'runtime' , 'start' ],
597
597
address = test_board_hostname )
598
598
addPythonCoverageSteps (artiqBuildFactory ,
599
- source_path = 'artiq/test' ,
599
+ source_path = 'artiq' , test_path = 'artiq /test' ,
600
600
locks = [low_latency_lock .access ('exclusive' )],
601
601
extra_vars = { 'ARTIQ_LOW_LATENCY' : '1' , 'ARTIQ_ROOT' : 'artiq/examples/master' })
602
602
addPythonCoverageCombineSteps (artiqBuildFactory )
@@ -627,7 +627,7 @@ addCondaSetupTestEnvironmentSteps(artiqWin64TestBuildFactory,
627
627
addCondaInstallToTestEnvironmentSteps (artiqWin64TestBuildFactory ,
628
628
packages = [WithProperties ('%(package)s' )])
629
629
addPythonCoverageSteps (artiqWin64TestBuildFactory ,
630
- source_path = 'artiq/test' ,
630
+ source_path = 'artiq' , test_path = 'artiq /test' ,
631
631
locks = [low_latency_lock .access ('exclusive' )],
632
632
extra_vars = { 'ARTIQ_LOW_LATENCY' : '1' , 'ARTIQ_ROOT' : 'artiq\\ examples\\ master' })
633
633
addPythonCoverageCombineSteps (artiqWin64TestBuildFactory )
0 commit comments