diff --git a/filebeat/tests/system/test_input.py b/filebeat/tests/system/test_input.py index b3b832c451ce..8aebe49f4d0a 100644 --- a/filebeat/tests/system/test_input.py +++ b/filebeat/tests/system/test_input.py @@ -719,7 +719,7 @@ def test_inode_marker_based_identity_tracking(self): File is picked up again if the contents of the marker file changes. """ - marker_location = self.working_dir + "/marker" + marker_location = os.path.join(self.working_dir, "marker") with open(marker_location, 'w') as m: m.write("very-unique-string") @@ -753,7 +753,7 @@ def test_inode_marker_based_identity_tracking_to_path_based(self): File reading can be continued after file_identity is changed. """ - marker_location = self.working_dir + "/marker" + marker_location = os.path.join(self.working_dir, "marker") with open(marker_location, 'w') as m: m.write("very-unique-string")