blob: 1891dcd11f915e557a6dc1dd8f0b76ace278ce62 [file] [log] [blame] [edit]
#!/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
readonly bin_dir="$(readlink -e -- "$(dirname -- "$0")")"
cd "${bin_dir}/../venv"
find . -name "*.pyc" -print0 | xargs -0 rm -f
"${bin_dir}/python_venv" -m pytest "$@"
"${bin_dir}/python_venv3" -m pytest "$@"