github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/bin/vtox (about) 1 #!/bin/bash 2 # 3 # Copyright (c) 2015-2021, NVIDIA CORPORATION. 4 # SPDX-License-Identifier: Apache-2.0 5 6 # tox wrapper for vagrant 7 ARGS=${@:-"-e pep8,py27"} 8 set -e 9 cd /vagrant/swift 10 sed -i '/envlist/ a\ 11 toxworkdir = /home/vagrant/.tox-swift 12 ' tox.ini 13 cp setup.py _setup.py 14 cat > setup.py <<EOF 15 import os 16 import shutil 17 os.link = shutil.copy 18 import _setup 19 _setup 20 EOF 21 set +e 22 tox $ARGS 23 error=$? 24 sed -i '/toxworkdir/d' tox.ini 25 mv _setup.py setup.py 26 cd - 27 exit $error