From 2cf2102f99a785d0756cd77a66d7fb6cdf87aa12 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 15 Mar 2012 15:23:51 -0400 Subject: [PATCH] test_build_root: convert to arrays Minor code clean up. BUG=None TEST=`build_image` still works + boots Change-Id: I0e26dd3575f963a52d522c4f7c2da8aa5a7dda5c Reviewed-on: https://gerrit.chromium.org/gerrit/30262 Reviewed-by: Mike Frysinger Tested-by: Mike Frysinger Commit-Ready: Mike Frysinger --- build_library/test_build_root | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/build_library/test_build_root b/build_library/test_build_root index 0409582275..c71cc14a1b 100755 --- a/build_library/test_build_root +++ b/build_library/test_build_root @@ -29,14 +29,17 @@ if [[ ! -d "$ROOT" ]]; then die_notrace "Root FS does not exist ($ROOT)" fi -BINARIES="$ROOT/usr/bin/Xorg - $ROOT/boot/vmlinuz - $ROOT/sbin/session_manager - $ROOT/bin/sed - $ROOT/opt/google/chrome/chrome" +ROOT_BINARIES=( + /usr/bin/Xorg + /boot/vmlinuz + /sbin/session_manager + /bin/sed + /opt/google/chrome/chrome +) EXITCODE=0 -for i in $BINARIES; do +for i in "${BINARIES[@]}"; do + i="${ROOT}${i}" if ! [[ -f $i ]]; then error "cannot find $i" EXITCODE=1