blob: 77e77d99af342746474e0fb9cabc3373a22fd6e6 [file] [log] [blame] [edit]
#!/bin/bash
# Internal wrapper script used to run commands in a container
# Copy all the files we need from the mypy repo directory shared with
# the host to a local directory. Accessing files using a shared
# directory on a mac can be *very* slow.
echo "copying files to the container..."
cp -R /repo/{mypy,mypyc,test-data,misc} .
cp /repo/{pytest.ini,conftest.py,runtests.py,pyproject.toml,setup.cfg} .
cp /repo/{mypy_self_check.ini,mypy_bootstrap.ini} .
# Run the wrapped command
"$@"