1#!/bin/bash 2# Copyright 2017 The Chromium OS Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5# 6# Run unit tests. 7set -eu 8 9readonly bin_dir="$(readlink -e -- "$(dirname -- "$0")")" 10 11cd "${bin_dir}/../venv" 12 13find . -name "*.pyc" -print0 | xargs -0 rm -f 14 15exec "${bin_dir}/python_venv" -m pytest "$@" 16