Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit14b4402

Browse files
committed
Cwd on Windows
1 parent94215a2 commit14b4402

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

‎testgres/node.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,15 +1674,13 @@ def _get_bin_path(self, filename):
16741674
classNodeApp:
16751675

16761676
def__init__(self,test_path=None,nodes_to_cleanup=None,os_ops=LocalOperations()):
1677-
print('ALEXEY in nodeapp init',test_path)
16781677
iftest_path:
16791678
ifos.path.isabs(test_path):
16801679
self.test_path=test_path
16811680
else:
16821681
self.test_path=os.path.join(os_ops.cwd(),test_path)
16831682
else:
16841683
self.test_path=os_ops.cwd()
1685-
print('ALEXEY in nodeapp resulting test path',self.test_path)
16861684
self.nodes_to_cleanup=nodes_to_cleanupifnodes_to_cleanupelse []
16871685
self.os_ops=os_ops
16881686

‎testgres/operations/os_ops.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ def environ(self, var_name):
3737
raiseNotImplementedError()
3838

3939
defcwd(self):
40-
ifsys.platform=='win32':
41-
raiseNotImplementedError()
42-
returnself.exec_command('pwd').decode().rstrip()
40+
ifsys.platform=='linux':
41+
cmd='pwd'
42+
elifsys.platform=='win32':
43+
cmd='cd'
44+
returnself.exec_command(cmd).decode().rstrip()
4345

4446
deffind_executable(self,executable):
4547
raiseNotImplementedError()

‎testgres/operations/remote_ops.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
importgetpass
22
importos
3-
importlogging
43
importplatform
54
importsubprocess
65
importtempfile

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp