summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-11-29 14:40:20 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-02-01 16:36:50 (GMT)
commitd794c07bf38b9a851e9cbef4a3de8b3691cb3bcf (patch)
treea306a89d148d0a247d563991ee2e0f04507dce46 /tsp/scripts
parentfef9f11a961d8f38fe1a27565cfdff81274627e1 (diff)
downloadmajor-d794c07bf38b9a851e9cbef4a3de8b3691cb3bcf.zip
major-d794c07bf38b9a851e9cbef4a3de8b3691cb3bcf.tar.gz
major-d794c07bf38b9a851e9cbef4a3de8b3691cb3bcf.tar.bz2
Log failed devices in /var/tmp/failed_devices.logrefs/changes/40/108740/3
Change-Id: I20378647806ac2fbf546823219d32034310516e9 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/common_prep_flash_conf.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tsp/scripts/common_prep_flash_conf.sh b/tsp/scripts/common_prep_flash_conf.sh
index 1eca9b4..c260813 100755
--- a/tsp/scripts/common_prep_flash_conf.sh
+++ b/tsp/scripts/common_prep_flash_conf.sh
@@ -20,6 +20,7 @@
# WORKDIR_REMOTE, TARGET are given as environment variables
+FAILED_DEVICE_LOG="/var/tmp/failed_devices.log"
TESTLAB_MAJOR="/opt/testlab-major"
cd "${WORKDIR_REMOTE}" || exit
@@ -95,6 +96,7 @@ if grep -q "Testing failed." sysctl.result
then
echo "FAILED 1" >> sysctl.result
python "${TESTLAB_MAJOR}/tct/resource_locking.py" --unlockfailed "${SDMUX}"
+ echo "$(date): ${SDMUX}" >> "${FAILED_DEVICE_LOG}"
else
echo "FAILED 0" >> sysctl.result
python "${TESTLAB_MAJOR}/tct/resource_locking.py" --unlock "${SDMUX}"