mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
test_build_root: use helper funcs for output
We've got nifty output helpers. Use them. BUG=None TEST=build_packages+build_image for x86-alex works Change-Id: I03172a8b1baba770cd425a52a1061e998a9717b6 Reviewed-on: https://gerrit.chromium.org/gerrit/18246 Reviewed-by: Chris Masone <cmasone@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
51f9606168
commit
53d3680f54
@ -26,8 +26,7 @@ set -o pipefail
|
||||
|
||||
ROOT="$FLAGS_root"
|
||||
if [[ ! -d "$ROOT" ]]; then
|
||||
echo "Error: Root FS does not exist ($ROOT)"
|
||||
exit 1
|
||||
die "Root FS does not exist ($ROOT)"
|
||||
fi
|
||||
|
||||
BINARIES="$ROOT/usr/bin/Xorg
|
||||
@ -39,7 +38,7 @@ BINARIES="$ROOT/usr/bin/Xorg
|
||||
EXITCODE=0
|
||||
for i in $BINARIES; do
|
||||
if ! [[ -f $i ]]; then
|
||||
echo test_build_root: Cannot find $i
|
||||
error "cannot find $i"
|
||||
EXITCODE=1
|
||||
fi
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user