blob: e551eaa2c7a0150313850343485e1c7d51e55705 [file] [log] [blame]
#!/bin/bash
# Copyright 2018 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 Google Storage archive server from inside virtual environment.
set -eu
readonly bindir=$(dirname -- "$(readlink -e -- "$0")")
readonly homedir=$(cd "$bindir"/../gs_cache; pwd)
export PYTHONPATH=$homedir
exec vpython -vpython-spec $homedir/.vpython -m pytest \
"$homedir"/*.py "$homedir"/tests "$@"