Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix possible wrong mocking path in mocker.py
The mocker.py uses all of `os.path.abspath`, `os.path.realpath` and `os.path.relpath`. When we configure greenplum source using a soft path, unit test will error out because file relative path returned by mocker.py is wrong. Maybe we can replace `os.path.abspath` with `os.path.realpath` . However there are some special paths: fe-auth.c -> ../../../src/interfaces/libpq/fe-auth.c fe-exec.c -> ../../../src/interfaces/libpq/fe-exec.c ... Use os.path.realpath(os.path.dirname(path) can gain the correct path.
- Loading branch information