Skip to content
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

Expand $TEST_UNDECLARED_OUTPUTS_DIR when running test from bazel #553

Merged
merged 1 commit into from
May 18, 2023

Conversation

nanwng
Copy link
Collaborator

@nanwng nanwng commented May 16, 2023

Currently when running bluepill from bazel, $TEST_UNDECLARED_OUTPUTS_DIR is not accessible from test runtime by passing with --test_env

Supporting it by expanding the variable in the shell script and passing it to the test plan.

So we can run something like bazel test Taget --config Debug --test_env SCREENSHOT_DIR=\$TEST_UNDECLARED_OUTPUTS_DIR/screenshots. Then the screenshot can be saved to the undeclared outputs dir and be packaged to the final bazel-testlog folder

ref: https://bazel.build/reference/test-encyclopedia#initial-conditions

@nanwng nanwng requested a review from a team as a code owner May 16, 2023 22:01
@nanwng nanwng force-pushed the nanwng/expand_test_undeclared_outputs_dir branch from dc05d21 to 9a907b2 Compare May 16, 2023 22:03
@ob ob merged commit 0ff8ffd into master May 18, 2023
@ob ob deleted the nanwng/expand_test_undeclared_outputs_dir branch May 18, 2023 00:46
nanwng added a commit that referenced this pull request May 24, 2023
larrytaowang added a commit to larrytaowang/bluepill that referenced this pull request Jan 24, 2024
larrytaowang added a commit to larrytaowang/bluepill that referenced this pull request Feb 7, 2024
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

Successfully merging this pull request may close these issues.

2 participants