diff options
Diffstat (limited to 'vellamo3/vc.py')
-rwxr-xr-x | vellamo3/vc.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vellamo3/vc.py b/vellamo3/vc.py index 8a47ef0..7f52805 100755 --- a/vellamo3/vc.py +++ b/vellamo3/vc.py @@ -2,13 +2,15 @@ # Author: # Milosz Wasilewski <milosz.wasilewski@linaro.org> # Botao Sun <botao.sun@linaro.org> - +import os import sys import time import json from subprocess import call from com.dtmilano.android.viewclient import ViewClient, ViewNotFoundException +parent_dir = os.path.realpath(os.path.dirname(__file__)) + # Result collection for LAVA debug_switcher = False default_unit = 'Points' @@ -129,7 +131,7 @@ for chapter in chapters: device.press("KEYCODE_BACK") device.press("KEYCODE_BACK") -return_value = call(['./get_result.sh']) +return_value = call(['%s/get_result.sh' % parent_dir]) if return_value == 0: extract_scores(filename='chapterscores.json') else: |