Skip to content

v1.2.1

  • v1.2.1
  • 4395cd1
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
  • Choose a tag to compare

  • v1.2.1
  • 4395cd1
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@bors bors tagged this 30 Nov 09:02
17: Respect user provided absolute path r=matklad a=mvtec-bergdolll

When the environment variable CARGO_MANIFEST_DIR is not present as is the default when opening a workspace project in vs code and running the tests. `expect-test` panics.

The problem can be reproduced with this minimal project https://github.com/mvtec-bergdolll/expect-test-repro-proj/tree/main. Open it in vs code and run the integration tests. They panic. However running them from the shell does not panic. That's unfortunate.

As user trying to debug this I was confused why it failed even when providing an absolute path.

This change includes:
- Do not query CARGO_MANIFEST_DIR if the user already provided an absolute path when calculating an absolute path
- Better error message when CARGO_MANIFEST_DIR is not present

I'm not sure how to easily test this so I've not added automated testing.

Co-authored-by: Lukas Bergdoll <lukas.bergdoll@mvtec.com>
Assets 2
Loading