diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2022-06-30 14:30:21 +0200 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2022-07-01 11:51:03 +0800 |
commit | 18305fd30df731e27b6e909ea7d846b579f0abc4 (patch) | |
tree | 9a941ccd86ad64ae934e73802a8d4e061272c3cd /test/LedgerHarness.py | |
parent | 7424c244d69c386187f6df87d309c1d54f8a435b (diff) | |
download | fork-ledger-18305fd30df731e27b6e909ea7d846b579f0abc4.tar.gz fork-ledger-18305fd30df731e27b6e909ea7d846b579f0abc4.tar.bz2 fork-ledger-18305fd30df731e27b6e909ea7d846b579f0abc4.zip |
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.
Diffstat (limited to 'test/LedgerHarness.py')
-rwxr-xr-x | test/LedgerHarness.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py index 0b4f174d..a23812f0 100755 --- a/test/LedgerHarness.py +++ b/test/LedgerHarness.py @@ -50,8 +50,8 @@ class LedgerHarness: print("Cannot find source path at '%s'" % argv[2]) sys.exit(1) - self.ledger = os.path.abspath(argv[1]) - self.sourcepath = os.path.abspath(argv[2]) + self.ledger = os.path.realpath(argv[1]) + self.sourcepath = os.path.realpath(argv[2]) self.succeeded = 0 self.failed = 0 self.verify = '--verify' in argv |