Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63357
Adds the ability to set CONTINUE_THROUGH_ERROR as an environment
variable so that we can easily set it without having to add the flag
directly
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
Test Plan: Imported from OSS
Reviewed By: astaff
Differential Revision:
D30351108
Pulled By: seemethere
fbshipit-source-id:
767fa9bd24e1399f359eb24d16f6cc985a2d7173
import argparse
import copy
from datetime import datetime
+from distutils.util import strtobool
import modulefinder
import os
import shutil
parser.add_argument(
'--continue-through-error',
action='store_true',
- help='Runs the full test suite despite one of the tests failing')
+ help='Runs the full test suite despite one of the tests failing',
+ default=strtobool(os.environ.get("CONTINUE_THROUGH_ERROR", "False")))
parser.add_argument(
'additional_unittest_args',
nargs='*',