diff options
author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2019-04-02 14:38:03 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-03 14:50:13 +0100 |
commit | 98234dd6c658e142585649907e84175c700b9b79 (patch) | |
tree | 84f1826c3f30164c8171d685f8e0e19ae949de92 /scripts/resulttool | |
parent | 35bd1759d50be578079b53664466c53b2fa69b79 (diff) | |
download | poky-98234dd6c658e142585649907e84175c700b9b79.tar.gz |
resulttool: Enable report for single result file
Current validation check function inside resulttool disallow the
report for single result file although the underlying library
was able to handle both directory and file as source input to report.
Removed the validation check as it was no longer needed and to
enable report for single result file.
(From OE-Core rev: a85a8febf04d763dd5b3d20487d528731105afab)
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/resulttool')
-rwxr-xr-x | scripts/resulttool | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/resulttool b/scripts/resulttool index 5a89e1c9be..18ac101923 100755 --- a/scripts/resulttool +++ b/scripts/resulttool | |||
@@ -51,13 +51,6 @@ import resulttool.report | |||
51 | import resulttool.manualexecution | 51 | import resulttool.manualexecution |
52 | logger = scriptutils.logger_create('resulttool') | 52 | logger = scriptutils.logger_create('resulttool') |
53 | 53 | ||
54 | def _validate_user_input_arguments(args): | ||
55 | if hasattr(args, "source_dir"): | ||
56 | if not os.path.isdir(args.source_dir): | ||
57 | logger.error('source_dir argument need to be a directory : %s' % args.source_dir) | ||
58 | return False | ||
59 | return True | ||
60 | |||
61 | def main(): | 54 | def main(): |
62 | parser = argparse_oe.ArgumentParser(description="OEQA test result manipulation tool.", | 55 | parser = argparse_oe.ArgumentParser(description="OEQA test result manipulation tool.", |
63 | epilog="Use %(prog)s <subcommand> --help to get help on a specific command") | 56 | epilog="Use %(prog)s <subcommand> --help to get help on a specific command") |
@@ -80,9 +73,6 @@ def main(): | |||
80 | elif args.quiet: | 73 | elif args.quiet: |
81 | logger.setLevel(logging.ERROR) | 74 | logger.setLevel(logging.ERROR) |
82 | 75 | ||
83 | if not _validate_user_input_arguments(args): | ||
84 | return -1 | ||
85 | |||
86 | try: | 76 | try: |
87 | ret = args.func(args, logger) | 77 | ret = args.func(args, logger) |
88 | except argparse_oe.ArgumentUsageError as ae: | 78 | except argparse_oe.ArgumentUsageError as ae: |