diff options
| author | Patrick Vacek <patrickvacek@gmail.com> | 2020-01-23 16:24:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-23 16:24:27 +0100 |
| commit | 544eecf0f74c708f531328116bcff4386fb3906f (patch) | |
| tree | c709ee69ea6e6b4f7273d0540c0820b7995cb46d /scripts/run-qemu-ota | |
| parent | d61874d62d6c22d72d8d03857516f1d8e6cec789 (diff) | |
| parent | ae69c53b68f6c7a01b1d49d646a3427ba337583b (diff) | |
| download | meta-updater-544eecf0f74c708f531328116bcff4386fb3906f.tar.gz | |
Merge pull request #665 from advancedtelematic/feat/thud/2020.1
Feat/thud/2020.1
Diffstat (limited to 'scripts/run-qemu-ota')
| -rwxr-xr-x | scripts/run-qemu-ota | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/run-qemu-ota b/scripts/run-qemu-ota index e2a4103..5652797 100755 --- a/scripts/run-qemu-ota +++ b/scripts/run-qemu-ota | |||
| @@ -39,6 +39,12 @@ def main(): | |||
| 39 | help='Give the image a second network card connected to a virtual network. ' + | 39 | help='Give the image a second network card connected to a virtual network. ' + |
| 40 | 'This can be used to test Uptane Primary/Secondary communication.') | 40 | 'This can be used to test Uptane Primary/Secondary communication.') |
| 41 | parser.add_argument('-n', '--dry-run', help='Print qemu command line rather then run it', action='store_true') | 41 | parser.add_argument('-n', '--dry-run', help='Print qemu command line rather then run it', action='store_true') |
| 42 | parser.add_argument('--host-forward', | ||
| 43 | help='Redirect incoming TCP or UDP connections to the host port. ' | ||
| 44 | 'Example forwarding guest port 10050 to the host port 10555:' | ||
| 45 | '--host-forward="tcp:0.0.0.0:10556-:10050". ' | ||
| 46 | 'For more details please refer to QEMU man page, option <hostfwd>. ' | ||
| 47 | 'https://manpages.debian.org/testing/qemu-system-x86/qemu-system-x86_64.1.en.html') | ||
| 42 | args = parser.parse_args() | 48 | args = parser.parse_args() |
| 43 | 49 | ||
| 44 | if args.overlay and not exists(args.overlay) and dirname(args.overlay) and not dirname(args.overlay) == '.': | 50 | if args.overlay and not exists(args.overlay) and dirname(args.overlay) and not dirname(args.overlay) == '.': |
