Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bustage Fix for Bug 802768 - Cleanup code, begin to add official pand…
Browse files Browse the repository at this point in the history
…a support to sut_tools. r=kmoir
  • Loading branch information
Callek committed Oct 29, 2012
1 parent f1c6451 commit ddcce86
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions buildfarm/mobile/start_cp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if [ "$TERM" != "screen" ] ; then
exit 1
fi

tegras=`ls -d tegra-* 2&> /dev/null`
pandas=`ls -d panda-* 2&> /dev/null`
tegras=`ls -d tegra-* 2> /dev/null`
pandas=`ls -d panda-* 2> /dev/null`

if [ -z $1 ] ; then
devices="$tegras $pandas"
Expand Down
4 changes: 2 additions & 2 deletions buildfarm/mobile/stop_cp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
cd /builds

if [ -z $1 ] ; then
tegras=tegra-*
pandas=panda-*
tegras=`ls -d tegra-* 2> /dev/null`
pandas=`ls -d panda-* 2> /dev/null`
devices="$tegras $pandas"
else
devices=$1
Expand Down
9 changes: 7 additions & 2 deletions sut_tools/sut_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ def loadDevicesData(filepath):
allDevices = loadDevicesData('/builds/tools/buildfarm/mobile')
if len(allDevices) == 0:
allDevices = loadDevicesData(os.path.join(os.path.dirname(__file__), '../buildfarm/mobile'))
tegras = [devices[x] for x in devices if x.startswith('tegra-')]
pandas = [devices[x] for x in devices if x.startswith('panda-')]
tegras = dict()
pandas = dict()
for x in allDevices:
if x.startswith('tegra-'):
tegras[x] = allDevices[x]
if x.startswith('panda-'):
pandas[x] = allDevices[x]

try:
masters = json.load(open('/builds/tools/buildfarm/maintenance/production-masters.json', 'r'))
Expand Down

0 comments on commit ddcce86

Please sign in to comment.