From 18305fd30df731e27b6e909ea7d846b579f0abc4 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Thu, 30 Jun 2022 14:30:21 +0200 Subject: Replace os.path.abspath with os.path.realpath to fix failing tests on Darwin, where /tmp is a symlink to /private/tmp and the tests fail as ledger reports filenames with the symlink resolved to /private/tmp, but the tests expect files with /tmp. --- test/CheckOptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/CheckOptions.py') diff --git a/test/CheckOptions.py b/test/CheckOptions.py index dc865532..bb0b3731 100755 --- a/test/CheckOptions.py +++ b/test/CheckOptions.py @@ -19,8 +19,8 @@ class CheckOptions (object): self.source_file = None self.sep = "\n --" - self.ledger = os.path.abspath(args.ledger) - self.source = os.path.abspath(args.source) + self.ledger = os.path.realpath(args.ledger) + self.source = os.path.realpath(args.source) self.missing_options = set() self.unknown_options = set() -- cgit v1.2.3