Skip to content

Errors when running tests internally #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
timmyfaraday opened this issue Nov 16, 2020 · 3 comments
Closed

Errors when running tests internally #27

timmyfaraday opened this issue Nov 16, 2020 · 3 comments

Comments

@timmyfaraday
Copy link
Collaborator

When running the tests internally, many tests fail due to

SystemError: opening file "/Users/tvanacke/.julia/packages/PowerModelsDistributionStateEstimation/QCTn0/test/data/enwl/measurements/temp.csv": Permission denied

@MartaVanin
Copy link
Collaborator

This is annoying, we can't make sure that directory has write access for each user.
I see two possible solutions:

  1. We either save and store a measurement CSV for each test, or
  2. we create a temporary directory with write access with "cd(mktempdir())". I would suspect this might also create issues, but it actually seemed to work here: loading test requires writable cwd JuliaLang/julia#17829

I will try the second one tomorrow or so

@MartaVanin
Copy link
Collaborator

I merged to master my branch with the 2. solution, testing works locally for me, but it was also the case before, so would be great if you could check whenever you have a minute

@MartaVanin
Copy link
Collaborator

closed by #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants