mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Expose provider min/max ports to stf local
.
This commit is contained in:
parent
b6c8d4809d
commit
252f778598
1 changed files with 10 additions and 0 deletions
10
lib/cli.js
10
lib/cli.js
|
@ -882,6 +882,14 @@ program
|
||||||
, 'provider name (or os.hostname())'
|
, 'provider name (or os.hostname())'
|
||||||
, String
|
, String
|
||||||
, os.hostname())
|
, os.hostname())
|
||||||
|
.option('--provider-min-port <port>'
|
||||||
|
, 'minimum port number for worker use'
|
||||||
|
, Number
|
||||||
|
, 7400)
|
||||||
|
.option('--provider-max-port <port>'
|
||||||
|
, 'maximum port number for worker use'
|
||||||
|
, Number
|
||||||
|
, 7700)
|
||||||
.option('-t, --group-timeout <seconds>'
|
.option('-t, --group-timeout <seconds>'
|
||||||
, 'group timeout'
|
, 'group timeout'
|
||||||
, Number
|
, Number
|
||||||
|
@ -956,6 +964,8 @@ program
|
||||||
, procutil.fork(__filename, [
|
, procutil.fork(__filename, [
|
||||||
'provider'
|
'provider'
|
||||||
, '--name', options.provider
|
, '--name', options.provider
|
||||||
|
, '--min-port', options.providerMinPort
|
||||||
|
, '--max-port', options.providerMaxPort
|
||||||
, '--connect-sub', options.bindDevPub
|
, '--connect-sub', options.bindDevPub
|
||||||
, '--connect-push', options.bindDevPull
|
, '--connect-push', options.bindDevPull
|
||||||
, '--group-timeout', options.groupTimeout
|
, '--group-timeout', options.groupTimeout
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue