Skip to content

Commit 483a4b3

Browse files
committed
MTR save - compress all at once, and save plugins if there are cores
By doing exec false, find will return non-0 on there being matches and then tar can save the plugins, de-referencing the list of symlinks make by mtr.
1 parent 8a0a949 commit 483a4b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • configuration/steps/commands

configuration/steps/commands/mtr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _save_logs(self) -> str:
7373
echo "Saving MTR logs to persistent volume because some tests failed"
7474
cd {self.log_path}
7575
mkdir -p {self.save_logs_path}
76-
time find . -iregex ".*/core\(\.[0-9]+\)" -ls -exec gzip {} \;
76+
time find . -iregex ".*/core\(\.[0-9]+\)" -ls -exec gzip \{\} + -exec false \{\} + || tar -czvf {self.save_logs_path}/plugins.tar.gz --dereference mysql-test/var/plugins
7777
find . -type f \( {patterns} \) -print0 | rsync -a --files-from=- --from0 ./ {self.save_logs_path}/
7878
exit 1
7979
"""

0 commit comments

Comments
 (0)