Commit 93e7c75f7d for frr
commit 93e7c75f7d74d8f969d6c0c4f94b89f2a7cfaced
Author: Donald Sharp <sharpd@nvidia.com>
Date: Fri Sep 25 13:57:40 2026 -0400
tests: Use -R for chown
Both FreeBSD and Linux both use and accept -R for chown,
while FreeBSD requires it to work properly.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py
index 7bb1f01a85..73713ca145 100644
--- a/tests/topotests/lib/topotest.py
+++ b/tests/topotests/lib/topotest.py
@@ -2702,8 +2702,8 @@ class Router(Node):
)
# Update the permissions on the log files
- self.cmd("chown frr:frr -R {}/{}".format(self.logdir, self.name))
- self.cmd("chmod ug+rwX,o+r -R {}/{}".format(self.logdir, self.name))
+ self.cmd("chown -R frr:frr {}/{}".format(self.logdir, self.name))
+ self.cmd("chmod -R ug+rwX,o+r {}/{}".format(self.logdir, self.name))
if "frr" in logd_options:
logdopt = logd_options["frr"]