-
Notifications
You must be signed in to change notification settings - Fork 178
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
Add unit tests for TarFile class (for #668) #675
base: main
Are you sure you want to change the base?
Conversation
I need Windows environment to reproduce the test failure on Windows platform. I will fix it tomorrow. |
I am unavailable for the next week or two, so I can't look deeply until March. |
In this PR, I did:
To make the test simpler, what I can do is:
I'm glad to make those changes later. However, the PR may still look complex after that. |
…ms copying all testdata files when running in Windows
I have removed the test for However, it seems when the test was running in Windows environment, all files under |
I'm OOO this week. Will look next week.
…On Wed, Feb 22, 2023, 2:35 AM Qingyu Sui ***@***.***> wrote:
I have removed the test for normalize_path.
However, it seems when the test was running in Windows environment, all
files under testdata were copied to
runfiles.Create().Rlocation("rules_pkg/tests/testdata/") although I just
declared data = [ "//tests:testdata/hello.txt" ] in the BUILD file. See
error logs: https://buildkite.com/bazel/rules-pkg/builds/2248 .
I don't know how to fix that, so I still need a subdirectory and test
files in this directory. The directory is named build_tar now.
Any ideas for removing the build_tar subdirectory would be appreciated.
—
Reply to this email directly, view it on GitHub
<#675 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHFR5UU4GQGS2BUUNHLWYWXRRANCNFSM6AAAAAAU7H2V3U>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
I think this is not an effective test. It sets up the bad condition within the test harness instead of creating the problem situation with normal inputs such as pkg_files targets. |
@aiuto Unfortunately we could never reproduce the issue with |
The unit tests mentioned in #668 .
This PR only covers unit tests for the case which #668 fixed, and a simple test for
normalize_path
interface. It's far from enough but a good start.