Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a00c088

Browse files
author
whitequark
committedJan 27, 2018
Use --preinit-command when flashing the test board.
1 parent 3d07995 commit a00c088

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed
 

Diff for: ‎master.cfg

+12-9
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,10 @@ def addCoverallsUploadSteps(factory, repo_token):
400400
}),
401401
locks = default_locks))
402402

403-
def addARTIQFlashSteps(factory, options, address):
403+
def addARTIQFlashSteps(factory, board, domain, options):
404+
address = '{}.{}'.format(board, domain)
405+
options = ['-I', '$(cat /var/lib/artiq/boards/{})'.format(board), *options]
406+
404407
factory.addStep(
405408
ShellCommand(
406409
name = 'artiq_flash',
@@ -419,9 +422,9 @@ def addARTIQFlashSteps(factory, options, address):
419422
factory.addStep(
420423
MasterShellCommand(
421424
name = 'ping',
422-
command = ['ping', address, '-c10', '-w30'],
423-
description = ['pinging', address],
424-
descriptionDone = ['ping', address],
425+
command = ['ping', domain, '-c10', '-w30'],
426+
description = ['pinging', domain],
427+
descriptionDone = ['ping', domain],
425428
haltOnFailure = True,
426429
locks = default_locks))
427430

@@ -545,8 +548,8 @@ c['builders'].append(
545548

546549
####### ARTIQ
547550

551+
test_board = 'kc705-1'
548552
test_board_package = 'artiq-kc705-nist_clock'
549-
test_board_hostname = 'kc705-1.lab.m-labs.hk'
550553

551554
#------ artiq
552555

@@ -583,10 +586,10 @@ addTriggerSteps(artiqBuildFactory,
583586
addCondaInstallSteps(artiqBuildFactory,
584587
packages=[test_board_package + "=%(output_version)s"])
585588
addFlockAcquireSteps(artiqBuildFactory,
586-
board='kc705-1')
589+
board=test_board)
587590
addARTIQFlashSteps(artiqBuildFactory,
588-
options=[],
589-
address=test_board_hostname)
591+
board=test_board,
592+
domain='lab.m-labs.hk')
590593
addPythonCoverageSteps(artiqBuildFactory,
591594
source_path='artiq', test_path='artiq/test/coredevice',
592595
locks=[low_latency_lock.access('exclusive')],
@@ -601,7 +604,7 @@ addTriggerSteps(artiqBuildFactory,
601604
waitForFinish=True,
602605
set_properties={'package': WithProperties('%(output_name)s')})
603606
addFlockReleaseSteps(artiqBuildFactory,
604-
board='kc705-1')
607+
board=test_board)
605608
# Build and upload ARTIQ documentation
606609
addSphinxDocumentSteps(artiqBuildFactory,
607610
source_path='doc/manual',

0 commit comments

Comments
 (0)
Please sign in to comment.