Skip to content

Race condition in CXI sampling integration test #388

@nscottnichols

Description

@nscottnichols

There is a race condition in the CXI sampling integration test https://github.com/argonne-lcf/THAPI/blob/devel/integration_tests/sampling.bats#L15-L40. The fix would be to move the counter bumps to the bash -c. Something like:

bash -c '  echo "1@12345.0" > test_device/cxi0/device/telemetry/test_counter;
                sleep 1;
                echo "10@12345.0" > test_device/cxi0/device/telemetry/test_counter;
                sleep 1`

And then check for 1 and 9.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions