summaryrefslogtreecommitdiff
path: root/automated/android/tradefed/tradefed.yaml
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2018-02-26 20:29:28 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2018-03-06 11:40:54 +0000
commit1de7b939c5a950f74ca8e30c267927463c2df277 (patch)
tree1288c3778306e82dbdfb537052cdb855c44a7b92 /automated/android/tradefed/tradefed.yaml
parentbc5f52e3f9bf8fd55f56fd62ec5a1252ceb30ee0 (diff)
tradefed tests: add support for specifying number for failed test case to be printed
the lava side will report timeout problem if we print too many failed test cases in the lava log. here we add support to specify the number to print for each job, Change-Id: Ia4937ac1bdba6eea65cb5162e8e62d6048eb3b94 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'automated/android/tradefed/tradefed.yaml')
-rw-r--r--automated/android/tradefed/tradefed.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/automated/android/tradefed/tradefed.yaml b/automated/android/tradefed/tradefed.yaml
index 4b35a8a..e30f074 100644
--- a/automated/android/tradefed/tradefed.yaml
+++ b/automated/android/tradefed/tradefed.yaml
@@ -31,6 +31,8 @@ params:
TOKEN: ""
AP_SSID: ""
AP_KEY: ""
+ # Specify the failures number to be printed
+ FAILURES_PRINTED: "0"
run:
steps:
@@ -43,7 +45,7 @@ run:
# create test use to run the cts/vts tests
- useradd -m testuser && echo "testuser created successfully"
- chown testuser:testuser .
- - sudo -u testuser ./tradefed.sh -o "${TIMEOUT}" -c "${TEST_URL}" -t "${TEST_PARAMS}" -p "${TEST_PATH}" -r "${RESULTS_FORMAT}" -n "${ANDROID_SERIAL}"
+ - sudo -u testuser ./tradefed.sh -o "${TIMEOUT}" -c "${TEST_URL}" -t "${TEST_PARAMS}" -p "${TEST_PATH}" -r "${RESULTS_FORMAT}" -n "${ANDROID_SERIAL}" -f "${FAILURES_PRINTED}"
# Upload test log and result files to artifactorial.
- cp -r ./${TEST_PATH}/results ./output/ || true
- cp -r ./${TEST_PATH}/logs ./output/ || true