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
=== added file 'lava_android_test/test_definitions/shells/custom.sh'
--- lava_android_test/test_definitions/shells/custom.sh 1970-01-01 00:00:00 +0000
+++ lava_android_test/test_definitions/shells/custom.sh 2013-06-25 07:28:50 +0000
@@ -0,0 +1,14 @@
1#!/system/bin/sh
2
3echo "The custom shell will be run is:"
4echo " $@"
5echo "Shell starts:"
6$@
7echo "Shell ends:"
8RET=$?
9echo "The exit status is: $RET"
10if [ $? -ne 0 ]; then
11 echo "custom=fail"
12else
13 echo "custom=pass"
14fi

Subscribers

People subscribed via source and target branches