diff --git a/integrationtests/full_test/crawl.py b/integrationtests/full_test/crawl.py index 4c4bf4cc8ef74bdefc7320c8bb5be2231b7cc146..5719e072e4690171b36e83405daf856ebad86acc 100755 --- a/integrationtests/full_test/crawl.py +++ b/integrationtests/full_test/crawl.py @@ -61,4 +61,4 @@ if __name__ == "__main__": AnalysisCFood, ExperimentCFood, PublicationCFood, SimulationCFood, ]) - c.crawl(files, security_level=UPDATE) + c.crawl(files, interactive=False, security_level=UPDATE) diff --git a/src/caosadvancedtools/crawler.py b/src/caosadvancedtools/crawler.py index d5da0a825a1f35a61fe33df72ca5e55c66010b69..8a7698b82d18c2e01adfd65992cbfe6a116ea228 100644 --- a/src/caosadvancedtools/crawler.py +++ b/src/caosadvancedtools/crawler.py @@ -74,7 +74,7 @@ class Crawler(object): if self.use_cache: self.cache = Cache() - def crawl(self, files, security_level=RETRIEVE): + def crawl(self, files, interactive=True, security_level=RETRIEVE): errors_occured = False tbs = [] guard.set_level(level=security_level) @@ -147,7 +147,7 @@ class Crawler(object): print("Attention: More than one matching cfood!") print("Tried to match {}".format(crawled_file.path)) - if "y" != input("Do you want to continue? (y)"): + if interactive and "y" != input("Do you want to continue? (y)"): return if self.verbosity >= INFO: