Skip to content

Commit 2bf2ccc

Browse files
authored
Patch test_e2e.py for easier command override
Binary name in snap is now `gitless.gl` and to run e2e tests with, the `sh` invocation syntax should be changed for dot https://amoffat.github.io/sh/sections/faq.html#how-do-i-execute-a-program-with-a-special-character-in-its-name
1 parent 21f4be6 commit 2bf2ccc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gitless/tests/test_e2e.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515
import sys
1616
if sys.platform != 'win32':
17-
from sh import ErrorReturnCode, gl, git
17+
from sh import ErrorReturnCode, Command
1818
else:
1919
from pbs import ErrorReturnCode, Command
20-
gl = Command('gl')
21-
git = Command('git')
20+
21+
gl = Command('gl')
22+
git = Command('git')
2223

2324

2425
from gitless.tests import utils

0 commit comments

Comments
 (0)