#!/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. | |
set -eu | |
cd -- "$(readlink -e -- "$(dirname -- "$0")")" | |
. ./find_virtualenv.sh | |
cd .. | |
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 |