sut_tools/installTests.py
author ffxbld
Wed, 23 Nov 2011 00:10:30 -0800
changeset 1995 c290db3dd53751672bab1d8e1e99a257131a1b2e
parent 1838 d784cb34b2674943f65cad7600f117fcbfb64e6b
child 3000 e3f0628bdf8981611943b5935cc47e881c5cbc01
permissions -rwxr-xr-x
Added tag FIREFOX_9_0b3_BUILD1_RUNTIME for changeset 38d0c34231be

#!/usr/bin/env python

import os, sys
import devicemanagerSUT as devicemanager

if (len(sys.argv) <> 3):
  print "usage: install.py <ip address> <localfilename>"
  sys.exit(1)

print "connecting to: " + sys.argv[1]
dm = devicemanager.DeviceManagerSUT(sys.argv[1])

devRoot  = dm.getDeviceRoot()
source   = sys.argv[2]
filename = os.path.basename(source)
target   = os.path.join(devRoot, filename)

dm.pushFile(source, target)
dm.unpackFile(target)