The trace archive resulting from the rotation of a session containing
per-PID channels does not result in the creation of te domain
subfolders.
The trace archive is empty if none of the traced domain were active
during the trace chunk's capture.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
# In a per-pid setup, only the first chunk is a valid trace, the other
# chunks should be empty folders
if test $per_pid = 1; then
- validate_trace_empty $local_path/${chunk_pattern}-1
- nr=$(ls $local_path/${chunk_pattern}-2/ust | wc -l)
+ validate_trace_empty $local_path/${chunk_pattern}-0
+ nr=$(ls $local_path/${chunk_pattern}-1/ | wc -l)
test $nr = 0
ok $? "Chunk 2 is empty"
- nr=$(ls $local_path/${chunk_pattern}-3/ust | wc -l)
+ nr=$(ls $local_path/${chunk_pattern}-2/ | wc -l)
test $nr = 0
ok $? "Chunk 3 is empty"
else