добавил в шаблоны падения
"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">
|
||||
<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$/src/TestingSystem/DVM/Tasks/TestRunTasksDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/Tasks/TestRunTasksDBTable.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/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Constants.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>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<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 tests_db_name = "tests2027";
|
||||
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
|
||||
// /var/spool/cron/crontabs/testuser что менять
|
||||
//https://saribzhanov.ru/tehno/perezagruzka-ubuntu-po-cron/ //раз в сутки
|
||||
//testuser ALL=NOPASSWD:/sbin/reboot
|
||||
//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://snipp.ru/raznoe/crontab
|
||||
// /var/spool/cron/crontabs/testuser что менять
|
||||
//https://saribzhanov.ru/tehno/perezagruzka-ubuntu-po-cron/ //раз в сутки
|
||||
//testuser ALL=NOPASSWD:/sbin/reboot
|
||||
//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
|
||||
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[]{
|
||||
//<editor-fold desc="все линуксовые команды. их МНОГО">
|
||||
"a2p",
|
||||
|
||||
@@ -1061,14 +1061,11 @@ public class Utils {
|
||||
}
|
||||
//--
|
||||
public static boolean isCrushedLine(String line) {
|
||||
return line.contains("RTS err")
|
||||
|| line.contains("RTS stack trace")
|
||||
|| line.contains("RTS fatal err")
|
||||
|| line.contains("SIGEGV")
|
||||
|| line.contains("There are not enough slots available in the system to satisfy the")
|
||||
|| line.contains("forrtl: severe")
|
||||
|| line.contains("invalid pointer")
|
||||
|| line.contains("forrtl: error");
|
||||
String l_line=line.toLowerCase();
|
||||
for (String crushed : Constants.crushed_cases)
|
||||
if (l_line.contains(crushed))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user