diff --git a/scripts/avocado-run-testplan b/scripts/avocado-run-testplan index ef89b3bd02e48cdad835dda45d6cbf6ca24b8f1d..301c7e4c2bd2b80f1417d5fbf7717c7c8b730cb5 100755 --- a/scripts/avocado-run-testplan +++ b/scripts/avocado-run-testplan @@ -31,13 +31,13 @@ class Parser(argparse.ArgumentParser): prog='avocado-run-testplan', description='Tracks manual test plans progress and results') - self.add_argument('-t', '--template', type=file, + self.add_argument('-t', '--template', type=argparse.FileType('r'), help='Template file with the predefined test plan') self.add_argument('-o', '--output', help='Output (test plan results) file location') - self.add_argument('-i', '--input', type=file, + self.add_argument('-i', '--input', type=argparse.FileType('r'), help=('A previously saved result file to use. This ' 'will show a human readable report for the ' 'given result file'))