mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Merge branch 'develop' of https://github.com/sleuthkit/autopsy into 2462-UnableToDeleteCases
This commit is contained in:
commit
f6cb425445
@ -370,7 +370,7 @@ public final class SearchRunner {
|
||||
private List<Keyword> keywords; //keywords to search
|
||||
private List<String> keywordListNames; // lists currently being searched
|
||||
private List<KeywordList> keywordLists;
|
||||
private Map<String, KeywordList> keywordToList; //keyword to list name mapping
|
||||
private Map<Keyword, KeywordList> keywordToList; //keyword to list name mapping
|
||||
private AggregateProgressHandle progressGroup;
|
||||
private final Logger logger = Logger.getLogger(SearchRunner.Searcher.class.getName());
|
||||
private boolean finalRun = false;
|
||||
@ -431,8 +431,7 @@ public final class SearchRunner {
|
||||
return null;
|
||||
}
|
||||
|
||||
final String queryStr = keyword.getSearchTerm();
|
||||
final KeywordList keywordList = keywordToList.get(queryStr);
|
||||
final KeywordList keywordList = keywordToList.get(keyword);
|
||||
|
||||
//new subProgress will be active after the initial query
|
||||
//when we know number of hits to start() with
|
||||
@ -545,7 +544,7 @@ public final class SearchRunner {
|
||||
keywordLists.add(list);
|
||||
for (Keyword k : list.getKeywords()) {
|
||||
keywords.add(k);
|
||||
keywordToList.put(k.getSearchTerm(), list);
|
||||
keywordToList.put(k, list);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
import org.netbeans.jemmy.Timeouts;
|
||||
import org.netbeans.junit.NbModuleSuite;
|
||||
import org.sleuthkit.autopsy.core.UserPreferences;
|
||||
|
||||
/**
|
||||
* This test expects the following system properties to be set: img_path: The
|
||||
@ -98,6 +99,7 @@ public class RegressionTest extends TestCase {
|
||||
public void setUp() {
|
||||
logger.info("######## " + AutopsyTestCases.getEscapedPath(System.getProperty("img_path")) + " #######");
|
||||
Timeouts.setDefault("ComponentOperator.WaitComponentTimeout", 1000000);
|
||||
UserPreferences.setNumberOfFileIngestThreads(1); //Let nightly test using 1 ingest thread to avoid ordering results in report of insertion to tsk tables
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user