libct/int/checkpoint_test: fix ParentImage (and bogus failure with criu 3.16) #3112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The ParentImage set by the test should be a path relative to
ImagesDirectory, pointing to a parent images directory (created
by pre-dump).
The parent directory is created by TempDir and so its name is not
constant but has a variable suffix. So, the config was pointing to
a non-existent directory.
This left unnoticed by criu as it assumed the parent image does not
exist, and performed a full dump (meaning the pre-dump was not used).
Since criu PR checkpoint-restore/criu#1403 (which will
be a part of criu 3.16) that is no longer the case -- the invalid parent
path is treated as an error, and so our test fails like this:
Fix this by using the actual name of the parent image dir.
Fixes: 98f0041
Signed-off-by: Kir Kolyshkin kolyshkin@gmail.com