Skip to content

Commit

Permalink
Merge pull request #949 from danielschickmunit/fix_unix_domain_socket
Browse files Browse the repository at this point in the history
path too long error fix
  • Loading branch information
Emantor authored Oct 18, 2022
2 parents 31ea71e + 82b9542 commit b56d5ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion labgrid/driver/sshdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _start_own_master(self):

def _start_own_master_once(self, timeout):

self.tmpdir = tempfile.mkdtemp(prefix='labgrid-ssh-tmp-')
self.tmpdir = tempfile.mkdtemp(prefix='lg-ssh-')
control = os.path.join(
self.tmpdir, f'control-{self.networkservice.address}'
)
Expand Down
2 changes: 1 addition & 1 deletion labgrid/util/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class SSHConnection:
default=False, init=False, validator=attr.validators.instance_of(bool)
)
_tmpdir = attr.ib(
default=attr.Factory(lambda: tempfile.mkdtemp(prefix="labgrid-connection-")),
default=attr.Factory(lambda: tempfile.mkdtemp(prefix="lg-con-")),
init=False,
validator=attr.validators.instance_of(str)
)
Expand Down

0 comments on commit b56d5ba

Please sign in to comment.