ReferencePlatforms/Test/Foopy: Difference between revisions

Jump to navigation Jump to search
→‎Setup for B2G/panda testing: updated script for enabling pandas after a foopy refresh
No edit summary
(→‎Setup for B2G/panda testing: updated script for enabling pandas after a foopy refresh)
 
Line 14: Line 14:
panda-0000,panda,32,mini,scl3,try,core,tests,tests-panda,/builds/panda-0000,1
panda-0000,panda,32,mini,scl3,try,core,tests,tests-panda,/builds/panda-0000,1
</pre>
</pre>
* Run this on the foopy
* Run this on the foopy as root
<pre>
<pre>
# ssh as cltbld
#!/usr/bin/env python
cd /builds/tools
 
hg pull -u
import os
hg id
import json
su -
import sys
# Run the rm command if you want to start with a clean state
 
# rm -rf /builds/panda-*
if len(sys.argv) < 2:
cd /builds/tools/buildfarm/mobile
    sys.exit('Usage: %s [foopy-name]' % sys.argv[0])
python setup_foopy.py # this setups the panda directories and grabs the buildbot.tac files
 
exit
with open('/builds/tools/buildfarm/mobile/devices.json') as devices:
# run this if you need to start everything at once
    pandas = json.load(devices)
for i in `ls | grep panda`; do /builds/manage_buildslave.sh start $i; done
 
# run this if you just want to start one device being added
for p in pandas:
/builds/manage_buildslave.sh start panda-XXXX
    if pandas[p]['foopy'] == sys.argv[1]:
        panda_path = os.path.join('/', 'builds', p)
        try:
            os.mkdir(panda_path)
            os.chown(panda_path, 'cltbld', 'cltbld')
        except OSError:
            print "directory already exists for panda", p
</pre>
</pre>


Bots, Confirmed users
270

edits

Navigation menu