Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

Commit

Permalink
fix dir
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Jun 23, 2016
1 parent 51d5783 commit f94ef48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions atx/device/ios/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash -
#
set -e
CWD=$(cd $(dirname $0); pwd)
WORKDIR=$PWD
cd $(dirname $0)

BUNDLE_ID=${BUNDLE_ID:?}
UDID=${UDID:-$(idevice_id -l)}
TEST="$CWD/instruments-test.js"
TEST="./instruments-test.js"

TRACETEMPLATE="/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate"

Expand All @@ -16,7 +17,7 @@ test -d $RESULTPATH || mkdir $RESULTPATH
case "$1" in
instruments)
# python -m atx.taskqueue web &>/tmp/atx.taskqueue.log &
exec instruments -w ${UDID:?} -t "Automation" -D cli.trace $BUNDLE_ID -e UIASCRIPT $TEST # -e UIARESULTSPATH $RESULTPATH
exec instruments -w ${UDID:?} -t "Automation" -D $WORKDIR/cli.trace $BUNDLE_ID -e UIASCRIPT $TEST # -e UIARESULTSPATH $RESULTPATH
#exec instruments -w ${UDID:?} -t "$TRACETEMPLATE" $BUNDLE_ID -e UIASCRIPT $TEST # -e UIARESULTSPATH $RESULTPATH
;;
run)
Expand Down
2 changes: 1 addition & 1 deletion atx/taskqueue/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def get(self, udid):
item = yield que.get(timeout=time.time()+timeout) # timeout is a timestamp, strange
print 'get from queue:', item
self.write(item)
que.task_done()
except gen.TimeoutError:
print 'timeout'
self.write('')
finally:
self.finish()
que.task_done()

@gen.coroutine
def post(self, udid):
Expand Down

0 comments on commit f94ef48

Please sign in to comment.