-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use start-multi command in e2e test suite (#900)
* Use start-multi command in e2e test suite * Fix start-multi command invocation * More sleep * Fix Popen invocation
- Loading branch information
Showing
2 changed files
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
|
||
from subprocess import Popen | ||
import logging as l | ||
from typing import Optional | ||
|
||
from .cmd import Config | ||
from .common import ChainId, PortId, ChannelId | ||
|
||
|
||
def start(c: Config, src: ChainId, dst: ChainId, src_port: Optional[PortId], src_channel: Optional[ChannelId]) -> Popen: | ||
args = [str(src), str(dst)] | ||
if src_port != None: | ||
args.extend(['-p', str(src_port)]) | ||
if src_channel != None: | ||
args.extend(['-c', str(src_channel)]) | ||
|
||
full_cmd = f'{c.relayer_cmd} -c {c.config_file} --json start'.split(' ') | ||
full_cmd.extend(args) | ||
|
||
def start(c: Config) -> Popen: | ||
full_cmd = f'{c.relayer_cmd} -c {c.config_file} -j start-multi'.split(' ') | ||
l.debug(' '.join(full_cmd)) | ||
|
||
return Popen(full_cmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters