Skip to content

[Tests] Tolerate extra robust_rmtree retry from real NFS removal#1609

Open
merkelmarrow wants to merge 1 commit into
Xilinx:devfrom
merkelmarrow:fix/robust-rmtree-test-nfs-retry-count
Open

[Tests] Tolerate extra robust_rmtree retry from real NFS removal#1609
merkelmarrow wants to merge 1 commit into
Xilinx:devfrom
merkelmarrow:fix/robust-rmtree-test-nfs-retry-count

Conversation

@merkelmarrow

Copy link
Copy Markdown
Contributor

A robust_rmtree test is very rarely flaky because it stubs a failed tree removal due to ENOTEMPTY (NFS race) twice, then calls a real shutil.rmtree and asserts that "calls == 3". But that third call might fail with a real ENOTEMPTY. This patch changes the assertion to >= 3 calls to remove this transient issue.

robust_rmtree stubs a failed tree removal due to ENOTEMPTY twice
then calls a real shutil.rmtree and asserts that attempts=3. But
that third call might fail with a real ENOTEMPTY, so assert
attempts >= 3 instead.

Signed-off-by: Marco Blackwell <mblackwe@amd.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