blob: 851e5bcc39874c9f6c8482df0008d598942e0cf3 [file] [log] [blame]
#!/bin/bash
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Run unit tests.
set -eu
cd -- "$(readlink -e -- "$(dirname -- "$0")")"
. ./find_virtualenv.sh
cd ../venv
find . -name "*.pyc" -print0 | xargs -0 rm -f
while getopts v name; do
case $name in
v) verbose=1;;
?) printf "Usage: %s: [-v]\n" "$0" >&2; exit 2;;
esac
done
exec_python_module unittest discover "${verbose:+-v}" -s cros_venv