summaryrefslogtreecommitdiffstats
path: root/tester
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2021-10-28 14:58:37 -0500
committerJoel Sherrill <joel@rtems.org>2021-10-29 16:44:02 -0500
commitba4648bf683fb4acb521f8933b34b80cb4f67cbd (patch)
treedb30e120956581d1f6e2e66f21fc06f3d096b87c /tester
parentTraceConverter.cc: Add catch for exception (diff)
downloadrtems-tools-ba4648bf683fb4acb521f8933b34b80cb4f67cbd.tar.bz2
rtems-bsp-builder: Fix mail support
This fixes a problem with mailer options support that occurred because check.py uses argparse.ArgumentParser instead of tester.rt.options.
Diffstat (limited to 'tester')
-rwxr-xr-xtester/rt/check.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/tester/rt/check.py b/tester/rt/check.py
index c01c25d..ec92e7e 100755
--- a/tester/rt/check.py
+++ b/tester/rt/check.py
@@ -105,7 +105,22 @@ def title():
return 'RTEMS Tools Project - RTEMS Kernel BSP Builder, %s' % (version.string())
def command_line():
- return wrap(('command: ', ' '.join(sys.argv)), lineend = '\\')
+ # Filter potentially sensitive mail options out.
+ filtered_args = [
+ arg for arg in sys.argv
+ if all(
+ smtp_opt not in arg
+ for smtp_opt in [
+ '--smtp-host',
+ '--mail-to',
+ '--mail-from',
+ '--smtp-user',
+ '--smtp-password',
+ '--smtp-port'
+ ]
+ )
+ ]
+ return wrap(('command: ', ' '.join(filtered_args)), lineend = '\\')
def jobs_option_parse(jobs_option):
try: