We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67c7c58 + c56347e commit b4ba8daCopy full SHA for b4ba8da
1 file changed
labgrid/util/managedfile.py
@@ -74,9 +74,9 @@ def sync_to_resource(self, symlink=None):
74
conn.run_check(f"test ! -e {symlink} -o -L {symlink}")
75
except ExecutionError:
76
raise ManagedFileError(f"Path {symlink} exists but is not a symlink.")
77
- conn.run_check(
78
- f"ln --symbolic --force --no-dereference {self.rpath}{os.path.basename(self.local_path)} {symlink}" # pylint: disable=line-too-long
79
- )
+ # use short options to be compatible with busybox
+ # --symbolic --force --no-dereference
+ conn.run_check(f"ln -sfn {self.rpath}{os.path.basename(self.local_path)} {symlink}")
80
81
82
def _on_nfs(self, conn):
0 commit comments