Merge lp:~liuyq0307/lava-android-test/shell-custom into lp:lava-android-test

Proposed by Yongqin Liu
Status: Merged
Merged at revision: 258
Proposed branch: lp:~liuyq0307/lava-android-test/shell-custom
Merge into: lp:lava-android-test
Diff against target: 18 lines (+14/-0)
1 file modified
lava_android_test/test_definitions/shells/custom.sh (+14/-0)
To merge this branch: bzr merge lp:~liuyq0307/lava-android-test/shell-custom
Reviewer Review Type Date Requested Status
Yongqin Liu self test Approve
Review via email: mp+171229@code.launchpad.net

Description of the change

Add the shell-custome test for running simple android shell commands from android build.

To post a comment you must log in.
Revision history for this message
Yongqin Liu (liuyq0307) :
review: Approve (self test)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'lava_android_test/test_definitions/shells/custom.sh'
2--- lava_android_test/test_definitions/shells/custom.sh 1970-01-01 00:00:00 +0000
3+++ lava_android_test/test_definitions/shells/custom.sh 2013-06-25 07:28:50 +0000
4@@ -0,0 +1,14 @@
5+#!/system/bin/sh
6+
7+echo "The custom shell will be run is:"
8+echo " $@"
9+echo "Shell starts:"
10+$@
11+echo "Shell ends:"
12+RET=$?
13+echo "The exit status is: $RET"
14+if [ $? -ne 0 ]; then
15+ echo "custom=fail"
16+else
17+ echo "custom=pass"
18+fi

Subscribers

People subscribed via source and target branches