summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-07-21 08:49:18 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2016-11-02 16:17:37 (GMT)
commit0efd89bf3b242f2149ca2aa60f373f4c05d89dec (patch)
tree37fbe75b995399f53346b18701059aaa50912b06 /tsp/scripts
parente73fa78f475cc6d3f938ac043a1781bbf1013106 (diff)
downloadmajor-0efd89bf3b242f2149ca2aa60f373f4c05d89dec.zip
major-0efd89bf3b242f2149ca2aa60f373f4c05d89dec.tar.gz
major-0efd89bf3b242f2149ca2aa60f373f4c05d89dec.tar.bz2
Dump variable name and value to sysctl.result filerefs/changes/31/81331/7
tct/run/smoke_tests.sh produces some numerical output. This patch makes it easy to store and retreive values as in line below: awk -v KEY="${KEY}" '$1 == KEY {print $2}' $DICT where $KEY is variable name and $DICT is sysctl.result file. Change-Id: I3eee61152a189ad443fa641f5160f516567506f1 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/common_prep_flash_conf.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tsp/scripts/common_prep_flash_conf.sh b/tsp/scripts/common_prep_flash_conf.sh
index 09d8d03..412406e 100755
--- a/tsp/scripts/common_prep_flash_conf.sh
+++ b/tsp/scripts/common_prep_flash_conf.sh
@@ -46,6 +46,7 @@ fi
SDMUX="$(python "${TESTLAB_MAJOR}/tct/resource_locking.py" --retrylock "${TARGET}")"
if [ -z "${SDMUX}" ]; then
echo "Failed to allocate SD MUX device." >> sysctl.result
+ echo "FAILED 1" >> sysctl.result
exit 1
fi
@@ -60,8 +61,10 @@ esac
if grep -q "Testing failed." sysctl.result
then
+ echo "FAILED 1" >> sysctl.result
python "${TESTLAB_MAJOR}/tct/resource_locking.py" --unlockfailed "${SDMUX}"
else
+ echo "FAILED 0" >> sysctl.result
python "${TESTLAB_MAJOR}/tct/resource_locking.py" --unlock "${SDMUX}"
fi