diff options
author | Maciej enczykowski <maze@google.com> | 2019-03-24 20:23:55 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-03-24 20:23:55 -0700 |
commit | 9dc5d59b92303b64562e10cc44ade4186cf28033 (patch) | |
tree | beb3e474dafa0d02b91bf063bba2915611c8567e | |
parent | f2a7312d735562e0f1fc9a35ba4632c8f5465c87 (diff) | |
parent | 3037c36ff89c336bce890dd39d41cc8f22f92862 (diff) | |
download | tests-9dc5d59b92303b64562e10cc44ade4186cf28033.tar.gz |
net-test: rootfs/net_test.sh - minor stylistic fixes am: 789dcf76b6
am: 3037c36ff8
Change-Id: I69ce12ac7bd9f3f4200049129f0c2d54f393ec5d
-rwxr-xr-x | net/test/rootfs/net_test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/test/rootfs/net_test.sh b/net/test/rootfs/net_test.sh index b4f1f4d..34f4a01 100755 --- a/net/test/rootfs/net_test.sh +++ b/net/test/rootfs/net_test.sh @@ -25,13 +25,13 @@ mount -t tmpfs tmpfs /run # If this system was booted under UML, it will always have a /proc/exitcode # file. If it was booted natively or under QEMU, it will not have this file. -if [ -e /proc/exitcode ]; then +if [[ -e /proc/exitcode ]]; then mount -t hostfs hostfs /host else mount -t 9p -o trans=virtio,version=9p2000.L host /host fi -test=$(cat /proc/cmdline | sed -re 's/.*net_test=([^ ]*).*/\1/g') -cd $(dirname $test) +test="$(sed -r 's/.*net_test=([^ ]*).*/\1/g' < /proc/cmdline)" +cd "$(dirname "${test}")" ./net_test.sh poweroff -f |