Open sampathchanda opened 7 months ago
Indeed that's caused by the lines:
# RUN: %mojo %s
In the test files, since they're executed by a shell, they're sensitive to spaces. We could change them to
# RUN: %mojo "%s"
but I'm not sure it's worth it as the command mojo test
will soon be used to test the stdlib and those lines won't be needed anymore
@gabrieldemarmiesse Do you know where the lines of code you specified are, in the repo?
Bug description
I checked out my package under my iCloud directory (which is under
Mobile Documents
on Mac), and hence the absolute path of my repository contains spaces. Because of this, running the tests fail saying mojo is unable to find the specified test file. Following is the error message:Am using Mac OS Sonoma 14.3 Mojo version: mojo 2024.4.1618 (37a3e965) Modular version: modular 0.7.2 (d0adc668)
PS: I tried renaming the
Mobile Documents
directory on Mac, which is a mistake that I understood later. Had to mess around quite a lot to get back the data from my iCloud. While I can checkout the repository somewhere else with the repository path not having spaces, I think it is still limiting to run tests to have this bug.Steps to reproduce
System information