-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Correctness
-
Fully Compatible
-
ALL
-
v8.0
This piece of resmoke code doesn't work as expected on Windows 2022 distro:
https://github.com/10gen/mongo/blob/503c02cb557d6d1f815f04e809b6b3e176eed080/buildscripts/resmokelib/multiversionconstants.py#L83-L86
This patch shows that `git rev-parse --show-toplevel` and pythons `os.getcwd()` return different values (link to logs):
[2024/03/29 16:43:02.805] Z:/data/mci/1fcbb7aa067e3b9f83c7d85a627324df/src [2024/03/29 16:43:02.805] C:/data/mci/1fcbb7aa067e3b9f83c7d85a627324df/src
The output above are from these statements:
print(check_output("git rev-parse --show-toplevel", shell=True, text=True).strip()) print(os.getcwd().replace("\\", "/"))