From 5e94bcb595035d865b301855c75fc5ca83d2ab51 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Sun, 18 Nov 2018 08:56:43 +0800 Subject: [PATCH] fix case for windows Signed-off-by: Frost Ming --- tests/integration/test_run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_run.py b/tests/integration/test_run.py index 8167a318..205ccadd 100644 --- a/tests/integration/test_run.py +++ b/tests/integration/test_run.py @@ -28,8 +28,11 @@ printfoo = "python -c \"print('foo')\"" notfoundscript = "randomthingtotally" appendscript = "cmd arg1" multicommand = "bash -c \"cd docs && make html\"" -scriptwithenv = "echo $HELLO" """) + if os.name == "nt": + f.write('scriptwithenv = "echo %HELLO%"\n') + else: + f.write('scriptwithenv = "echo $HELLO"\n') c = p.pipenv('install') assert c.return_code == 0