Commit 2ae34ef1 authored by lavocat's avatar lavocat
Browse files

Function main is now runner

In order to avoid naming conflicts, the main function as been called
runner.
parent 1eb78a38
......@@ -2,7 +2,7 @@
import sys
import os
import json
from erebor import main
from erebor import runner
from erebor import FrameworkControler
from isengard import consts
......@@ -107,4 +107,4 @@ class MPIComTest(FrameworkControler):
self.close()
if __name__ == "__main__":
sys.exit(main(sys.argv, MPIComTest))
sys.exit(runner(sys.argv, MPIComTest))
#!/usr/bin/env python3
import sys
from isengard import consts
from erebor import main
from erebor import runner
from task_lib import Group
from task_lib import NumberedGroup
from task_lib import Broadcaster
......@@ -22,4 +22,4 @@ class Sample(TaskProcessor):
self.tasks.append(g2)
if __name__ == "__main__":
sys.exit(main(sys.argv, Sample))
sys.exit(runner(sys.argv, Sample))
-------------------------------------------------------------------------
-- INIT LAUNCHER
-------------------------------------------------------------------------
taktuk is installed
-------------------------------------------------------------------------
-- START
-------------------------------------------------------------------------
......@@ -7,7 +7,7 @@ import json
import sys
import signal
import threading
from erebor import main
from erebor import runner
from erebor import FrameworkControler
from erebor import Erebor
from isengard import consts
......@@ -103,4 +103,4 @@ class Grid5000GroupTest(FrameworkControler):
network_root_up)
if __name__ == "__main__":
sys.exit(main(sys.argv, Grid5000GroupTest))
sys.exit(runner(sys.argv, Grid5000GroupTest))
#!/usr/bin/env python3
import sys
from erebor import main
from erebor import runner
from erebor import FrameworkControler
from isengard import consts
......@@ -61,4 +61,4 @@ class Grid5000SlowGroupTest(FrameworkControler):
network_root_up)
if __name__ == "__main__":
sys.exit(main(sys.argv, Grid5000SlowGroupTest))
sys.exit(runner(sys.argv, Grid5000SlowGroupTest))
......@@ -7,7 +7,7 @@ import json
import sys
import signal
import threading
from erebor import main
from erebor import runner
from erebor import FrameworkControler
from erebor import Erebor
from isengard import consts
......@@ -48,4 +48,4 @@ class Grid5000Test(FrameworkControler):
network_root_up)
if __name__ == "__main__":
sys.exit(main(sys.argv, Grid5000Test))
sys.exit(runner(sys.argv, Grid5000Test))
......@@ -6,7 +6,7 @@ import zmq
from isengard import consts
from erebor import MPIDecoder
def main(argv):
def runner(argv):
decoder = MPIDecoder()
print("start")
try:
......@@ -64,4 +64,4 @@ def main(argv):
print("job done for me {}".format(rank))
if __name__ == "__main__":
sys.exit(main(sys.argv))
sys.exit(runner(sys.argv))
......@@ -2,7 +2,7 @@
import sys
import os
import json
from erebor import main
from erebor import runner
from erebor import FrameworkControler
from isengard import consts
......@@ -107,4 +107,4 @@ class MPIComTest(FrameworkControler):
self.close()
if __name__ == "__main__":
sys.exit(main(sys.argv, MPIComTest))
sys.exit(runner(sys.argv, MPIComTest))
......@@ -2,7 +2,7 @@
import sys
import os
from isengard import consts
from erebor import main
from erebor import runner
from task_lib import MPIJail
from task_lib import MPIExecutor
from task_lib import TaskProcessor
......@@ -31,4 +31,4 @@ class Sample(TaskProcessor):
self.tasks.append(client_jail)
if __name__ == "__main__":
sys.exit(main(sys.argv, Sample))
sys.exit(runner(sys.argv, Sample))
......@@ -5,10 +5,10 @@ import json
import sys
import signal
import threading
from erebor import main
from erebor import FrameworkControler
from erebor import Erebor
from isengard import consts
from yggdrasil.erebor import runner
from yggdrasil.erebor import FrameworkControler
from yggdrasil.erebor import Erebor
from yggdrasil.isengard import consts
def flushprint(*args, **kwargs):
print(*args, file=sys.stdout, **kwargs)
......@@ -232,4 +232,4 @@ class Sample(FrameworkControler):
network_root_up)
if __name__ == "__main__":
sys.exit(main(sys.argv, Sample))
sys.exit(runner(sys.argv, Sample))
......@@ -2,7 +2,7 @@
import sys
import os
import json
from erebor import main
from erebor import runner
from erebor import FrameworkControler
from isengard import consts
......@@ -65,4 +65,4 @@ class MPIComTest(FrameworkControler):
self.close()
if __name__ == "__main__":
sys.exit(main(sys.argv, MPIComTest))
sys.exit(runner(sys.argv, MPIComTest))
#!/usr/bin/env python3
import sys
from isengard import consts
from erebor import main
from erebor import runner
from task_lib import Group
from task_lib import NumberedGroup
from task_lib import Broadcaster
......@@ -59,4 +59,4 @@ class Sample(TaskProcessor):
self.tasks.append(v3)
if __name__ == "__main__":
sys.exit(main(sys.argv, Sample))
sys.exit(runner(sys.argv, Sample))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment