добавил в шаблоны падения
"fatal error" "unknown error class" "failed"
This commit is contained in:
4
.idea/workspace.xml
generated
4
.idea/workspace.xml
generated
@@ -8,8 +8,8 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/Tasks/TestRunTasksDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/Tasks/TestRunTasksDBTable.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Common/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Constants.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExportTasksPackageToExcel.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExportTasksPackageToExcel.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Common/Utils/Utils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Utils/Utils.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|||||||
@@ -61,17 +61,31 @@ public class Constants {
|
|||||||
public static final String old_tests_db_name = "tests2026";
|
public static final String old_tests_db_name = "tests2026";
|
||||||
public static final String tests_db_name = "tests2027";
|
public static final String tests_db_name = "tests2027";
|
||||||
public static final String dateNaN = "NaN";
|
public static final String dateNaN = "NaN";
|
||||||
|
//------
|
||||||
|
public static final String[] crushed_cases = new String[]{
|
||||||
|
"rts err",
|
||||||
|
"rts stack trace",
|
||||||
|
"rts fatal err",
|
||||||
|
"sigegv",
|
||||||
|
"there are not enough slots available in the system to satisfy the",
|
||||||
|
"forrtl: severe",
|
||||||
|
"invalid pointer",
|
||||||
|
"forrtl: error",
|
||||||
|
"fatal error",
|
||||||
|
"unknown error class",
|
||||||
|
"failed"
|
||||||
|
};
|
||||||
//пробный коммит. изменение комментария.++
|
//пробный коммит. изменение комментария.++
|
||||||
//кронтаб и перезагрузка
|
//кронтаб и перезагрузка
|
||||||
//https://snipp.ru/raznoe/crontab
|
//https://snipp.ru/raznoe/crontab
|
||||||
// /var/spool/cron/crontabs/testuser что менять
|
// /var/spool/cron/crontabs/testuser что менять
|
||||||
//https://saribzhanov.ru/tehno/perezagruzka-ubuntu-po-cron/ //раз в сутки
|
//https://saribzhanov.ru/tehno/perezagruzka-ubuntu-po-cron/ //раз в сутки
|
||||||
//testuser ALL=NOPASSWD:/sbin/reboot
|
//testuser ALL=NOPASSWD:/sbin/reboot
|
||||||
//0 2 2,15 * * reboot &>/var/log/reboot.log
|
//0 2 2,15 * * reboot &>/var/log/reboot.log
|
||||||
//https://unix.stackexchange.com/questions/117148/how-can-i-run-reboot-as-a-normal-user-without-needing-to-enter-a-password
|
//https://unix.stackexchange.com/questions/117148/how-can-i-run-reboot-as-a-normal-user-without-needing-to-enter-a-password
|
||||||
public static final String ServerAddress = "alex-freenas.ddns.net";
|
public static final String ServerAddress = "alex-freenas.ddns.net";
|
||||||
//--
|
//--
|
||||||
//https://losst.ru/komandy-terminala-linux
|
//https://losst.ru/komandy-terminala-linux
|
||||||
public static String[] linux_system_commands = new String[]{
|
public static String[] linux_system_commands = new String[]{
|
||||||
//<editor-fold desc="все линуксовые команды. их МНОГО">
|
//<editor-fold desc="все линуксовые команды. их МНОГО">
|
||||||
"a2p",
|
"a2p",
|
||||||
|
|||||||
@@ -1061,14 +1061,11 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
//--
|
//--
|
||||||
public static boolean isCrushedLine(String line) {
|
public static boolean isCrushedLine(String line) {
|
||||||
return line.contains("RTS err")
|
String l_line=line.toLowerCase();
|
||||||
|| line.contains("RTS stack trace")
|
for (String crushed : Constants.crushed_cases)
|
||||||
|| line.contains("RTS fatal err")
|
if (l_line.contains(crushed))
|
||||||
|| line.contains("SIGEGV")
|
return true;
|
||||||
|| line.contains("There are not enough slots available in the system to satisfy the")
|
return false;
|
||||||
|| line.contains("forrtl: severe")
|
|
||||||
|| line.contains("invalid pointer")
|
|
||||||
|| line.contains("forrtl: error");
|
|
||||||
}
|
}
|
||||||
public static boolean isCrushed(List<String> output_lines, List<String> errors_lines) {
|
public static boolean isCrushed(List<String> output_lines, List<String> errors_lines) {
|
||||||
return output_lines.stream().anyMatch(Utils::isCrushedLine) || errors_lines.stream().anyMatch(Utils::isCrushedLine);
|
return output_lines.stream().anyMatch(Utils::isCrushedLine) || errors_lines.stream().anyMatch(Utils::isCrushedLine);
|
||||||
|
|||||||
Reference in New Issue
Block a user