Esempio n. 1
0
import sys
from merger.conf.mergeconf import LOGGER
from merger.logic.postcommit import produce_merge
from merger.logic.mergeserver import start_webpy
from merger.utils.argutils import is_client

if __name__ == "__main__":
    for arg in sys.argv:
        LOGGER.debug('main arg: ' + arg)
    if is_client(sys.argv):
        LOGGER.debug('auto merger client started...')
        produce_merge(sys.argv[2], sys.argv[3])
    else:  # its a server.
        start_webpy()
Esempio n. 2
0
import sys
from merger.conf.mergeconf import LOGGER
from merger.logic.postcommit import produce_merge
from merger.logic.mergeserver import start_webpy
from merger.utils.argutils import is_client


if __name__ == "__main__":
    for arg in sys.argv:
        LOGGER.debug('main arg: ' + arg)
    if is_client(sys.argv):
        LOGGER.debug('auto merger client started...')
        produce_merge(sys.argv[2], sys.argv[3])
    else: # its a server.
        start_webpy()
Esempio n. 3
0
 def test_is_client_sanity(self):
     self.assertFalse(is_client(['bla']))
Esempio n. 4
0
 def test_is_client_when_truely_is_client(self):
     self.assertTrue(is_client(['1', ARG_CLIENT]))
Esempio n. 5
0
    def test_is_client_sanity(self): self.assertFalse(is_client(['bla']))

    def test_is_client_when_truely_is_client(self):
Esempio n. 6
0
 def test_is_client_when_truely_is_client(self):
     self.assertTrue(is_client(['1', ARG_CLIENT]))