Skip to content

tests: give each integration test its own fixture directory#231

Open
igoropaniuk wants to merge 1 commit intolinux-msm:masterfrom
igoropaniuk:fix/separate_dirs_for_fixtures
Open

tests: give each integration test its own fixture directory#231
igoropaniuk wants to merge 1 commit intolinux-msm:masterfrom
igoropaniuk:fix/separate_dirs_for_fixtures

Conversation

@igoropaniuk
Copy link
Copy Markdown
Contributor

test_flashmap.sh and test_vip_generation.sh both wrote fixtures to ${builddir}/tests/data, and meson runs the two tests in parallel. Their generate_flat_build.sh invocations therefore raced on dd, cp and the final zip flashmap.zip ..., while test_vip_generation.sh's EXIT trap could rm -rf the directory out from under its peer.

The race was masked while zip took several seconds on the unshrunk 1 GB fixtures; once fixture generation dropped to ~30 ms it started firing on the macos-14 arm64 runner as zip exit status 18 ("could not open a specified file to read").

Point each test at its own directory (data-flashmap / data-vip) so they no longer share mutable state.

test_flashmap.sh and test_vip_generation.sh both wrote fixtures to
${builddir}/tests/data, and meson runs the two tests in parallel.
Their generate_flat_build.sh invocations therefore raced on dd, cp
and the final `zip flashmap.zip ...`, while test_vip_generation.sh's
EXIT trap could rm -rf the directory out from under its peer.

The race was masked while zip took several seconds on the unshrunk
1 GB fixtures; once fixture generation dropped to ~30 ms it started
firing on the macos-14 arm64 runner as zip exit status 18 ("could
not open a specified file to read").

Point each test at its own directory (data-flashmap / data-vip) so
they no longer share mutable state.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
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.

1 participant