git clone http://..../foo
cd foo
./foo.sh
git clone http://..../foo
cd foo
.\foo.cmd --bar
Run with --help
for more options.
def test_bootstrap_mac_and_linux(): | |
instructions = textwrap.dedent("""\ | |
git clone http://..../foo | |
cd foo | |
./foo.sh | |
""" + "--help)) | |
with temporary_directory = TemporaryDirectory(): | |
result = subprocess.run( | |
instructions, | |
shell=True, | |
check=True, | |
capture=True, | |
text=True, | |
cwd = temporary_directory | |
) | |
assert result... # was it able to print help? |