memgraph/experimental/distributed/tests/start_distributed
Dominik Gleich 73c1206e81 Remove extension from Python executables
Reviewers: mferencevic, buda

Reviewed By: buda

Subscribers: mislav.bradac, pullbot

Differential Revision: https://phabricator.memgraph.io/D988
2017-11-27 14:39:51 +01:00

25 lines
632 B
Python
Executable File

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Automatically copied to the build/ directory during Makefile (configured by cmake)
import os
command = 'gnome-terminal'
program = './distributed_test'
config_filename = 'config'
flags = '-alsologtostderr --minloglevel=2'
f = open(config_filename, 'r')
for line in f:
data = line.strip().split(' ')
my_mnid = data[0]
address = data[1]
port = data[2]
call = "{} {} --my_mnid {} --address {} --port {} --config_filename={}".format(
program, flags, my_mnid, address, port, config_filename)
command += " --tab -e '{}'".format(call)
print(command)
os.system(command)