summaryrefslogtreecommitdiff
path: root/automated/lib/py_test_lib.py
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-02-08 08:29:48 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-02-20 13:19:30 +0000
commit7d317f8b0be720c10394d94283c16583dad34b06 (patch)
tree5de82fba7fe97d5b50f3335989e9c1ecc92a72e0 /automated/lib/py_test_lib.py
parent6f49a1bbb11e50165dd17c4f67f49d8f10c01144 (diff)
automated: android: add cts test
Change-Id: I75eb65bc7de03cbe612b33c4ee69d50cfdc6608d Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/lib/py_test_lib.py')
-rwxr-xr-xautomated/lib/py_test_lib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/automated/lib/py_test_lib.py b/automated/lib/py_test_lib.py
new file mode 100755
index 0000000..e8932bf
--- /dev/null
+++ b/automated/lib/py_test_lib.py
@@ -0,0 +1,4 @@
+def add_result(result_file, result):
+ print(result)
+ with open(result_file, 'a') as f:
+ f.write('%s\n' % result)