aboutsummaryrefslogtreecommitdiff
path: root/build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/shells/custom.sh
blob: 4b786320df9642272c97c280245a201ff070eccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/system/bin/sh

echo "The custom shell will be run is:"
echo "    $@"
echo "Shell starts:"
$@
echo "Shell ends:"
RET=$?
echo "The exit status is: $RET"
if [ $? -ne 0 ]; then
    echo "custom=fail"
else
    echo "custom=pass"
fi