diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-21 12:55:48 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-21 12:55:48 +0000 |
commit | 586d3edf49f5dd8cd3e4f836afd562e21766914d (patch) | |
tree | 28f5eb4b0af49d1ce09c3408549c76bf7192e138 /test/test_crypto.py | |
parent | 127fbec4d3ec1c3d8d09c753dd7644155a7e63d5 (diff) |
tests: add PID of VPP under test to API dump filename for the test
Some testclasses (e.g. IPSec) have methods with the same names,
this causes a race when running in parallel to save the API and
move it into the test's directory - the name of the file has
only the test method name as a discriminator.
Saving two traces from two VPP instances "succeeds", in that
it silently overwrites the file. But only one mv operation
works - the other gives an error "file not found" and fails the test.
Solution: add the PID of VPP under test to the API dump filename,
this way the filenames become guaranteed unique and the race is avoided.
Change-Id: I1bb47ed73369fea0f1bfbf907588a51e2cabfb7f
Type: test
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'test/test_crypto.py')
0 files changed, 0 insertions, 0 deletions