]> git.lizzy.rs Git - rust.git/commitdiff
Try to print the crash logs on macOS on failure.
authorkennytm <kennytm@gmail.com>
Sun, 5 Nov 2017 17:10:09 +0000 (01:10 +0800)
committerkennytm <kennytm@gmail.com>
Sun, 5 Nov 2017 19:53:42 +0000 (03:53 +0800)
An attempt to debug #45230.

.travis.yml

index a59364e40de1d4e43843f328bcc22b76bb00c3cb..33982838eae32a68ce84b1b272d099d82ad65262 100644 (file)
@@ -253,7 +253,14 @@ after_failure:
 
   # Random attempt at debugging currently. Just poking around in here to see if
   # anything shows up.
-  - ls $HOME/Library/Logs/DiagnosticReports/
+  - ls -lat $HOME/Library/Logs/DiagnosticReports/
+  - find $HOME/Library/Logs/DiagnosticReports/ ! \(
+      -name '*.stage2-*.crash'
+      -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash'
+    \)
+      -exec echo -e travis_fold":start:crashlog\n\033[31;1m" {} "\033[0m" \;
+      -exec head -750 {} \;
+      -exec echo travis_fold":"end:crashlog \;
 
   # attempt to debug anything killed by the oom killer on linux, just to see if
   # it happened