aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'slave/autotua/fetch/__init__.py')
-rw-r--r--slave/autotua/fetch/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/slave/autotua/fetch/__init__.py b/slave/autotua/fetch/__init__.py
index 36588d6..224f056 100644
--- a/slave/autotua/fetch/__init__.py
+++ b/slave/autotua/fetch/__init__.py
@@ -65,3 +65,9 @@ class Fetcher(object):
while index >= 0:
subprocess.check_call(self.command % { 'file': filename, 'uri': target.uri[index], 'tries': 5 }, shell=True)
index -= 1
+
+if __name__ == "__main__":
+ import autotua
+ job = autotua.Jobs().getjobs()[0]
+ fetcher = Fetcher(tmpdir)
+ fetcher.fetch(job.stage)