def pytest_addoption(parser): cluster = re.sub('[0-9]+', '', subprocess.check_output('hostname'.split()).strip()) default_dirname = subprocess.check_output( 'git rev-parse --show-toplevel'.split()).strip() default_exes = tools.get_default_exes(default_dirname, cluster) parser.addoption( '--cluster', action='store', default=cluster, help= '--cluster=<cluster> to specify the cluster being run on, for the purpose of determing which commands to use. Default the current cluster' ) parser.addoption('--dirname', action='store', default=default_dirname, help='--dirname specifies the top-level directory') parser.addoption('--exes', action='store', default=default_exes, help='--exes={compiler_name: path}') # For local testing only parser.addoption('--exe', action='store', help='--exe=<hand-picked executable>')
def pytest_addoption(parser): cluster = re.sub( '[0-9]+', '', subprocess.check_output('hostname'.split()).decode('utf-8').strip()) default_dirname = subprocess.check_output( 'git rev-parse --show-toplevel'.split()).decode('utf-8').strip() default_exes = tools.get_default_exes(default_dirname, cluster) parser.addoption( '--cluster', action='store', default=cluster, help= '--cluster=<cluster> to specify the cluster being run on, for the purpose of determing which commands to use. Default the current cluster' ) parser.addoption( '--dirname', action='store', default=default_dirname, help= '--dirname=<path_to_dir> to specify the top-level directory. Default directory of build_lbann_lc executable' ) parser.addoption('--exes', action='store', default=default_exes, help='--exes={compiler_name: path}') parser.addoption( '--weekly', action='store_true', default=False, help= '--weekly specifies that the test should ONLY be run weekly, not nightly. Default False' )
def pytest_addoption(parser): cluster = re.sub('[0-9]+', '', subprocess.check_output('hostname'.split()).strip()) default_dirname = subprocess.check_output( 'git rev-parse --show-toplevel'.split()).strip() default_exes = tools.get_default_exes(default_dirname, cluster) parser.addoption( '--cluster', action='store', default=cluster, help= '--cluster=<cluster> to specify the cluster being run on, for the purpose of determing which commands to use. Default the current cluster' ) parser.addoption( '--debug_build', action='store_true', default=False, help= '--debug_build specifies that debug tests should be run, even without doing a --weekly build. Default False' ) parser.addoption( '--dirname', action='store', default=default_dirname, help= '--dirname=<path_to_dir> to specify the top-level directory. Default directory of build_lbann_lc executable' ) parser.addoption('--exes', action='store', default=default_exes, help='--exes={compiler_name: path}') parser.addoption( '--run', action='store_true', default=False, help= '--run specifies that a test normally ignored should be run. Default False' ) parser.addoption( '--weekly', action='store_true', default=False, help= '--weekly specifies that the test should ONLY be run weekly, not nightly. Default False' ) # For local testing only parser.addoption('--exe', action='store', help='--exe=<hand-picked executable>')
def pytest_addoption(parser): cluster = re.sub('[0-9]+', '', subprocess.check_output('hostname'.split()).strip()) default_dirname = subprocess.check_output( 'git rev-parse --show-toplevel'.split()).strip() default_exes = tools.get_default_exes(default_dirname, cluster) parser.addoption( '--cluster', action='store', default=cluster, help= '--cluster=<cluster> to specify the cluster being run on, for the purpose of determing which commands to use. Default the current cluster' ) parser.addoption( '--dirname', action='store', default=default_dirname, help= '--dirname=<path_to_dir> to specify the top-level directory. Default directory of build_lbann_lc executable' ) parser.addoption('--exes', action='store', default=default_exes, help='--exes={compiler_name: path}') parser.addoption( '--log', action='store', default=0, help= '--log=1 to keep trimmed accuracy files. Default (--log=0) removes files' ) parser.addoption( '--weekly', action='store_true', default=False, help= '--weekly specifies that the test should ONLY be run weekly, not nightly' ) # For local testing only parser.addoption('--exe', action='store', help='--exe=<hand-picked executable>')
def pytest_addoption(parser): cluster = re.sub( '[0-9]+', '', subprocess.check_output('hostname'.split()).decode('utf-8').strip()) default_dirname = subprocess.check_output( 'git rev-parse --show-toplevel'.split()).decode('utf-8').strip() default_exes = tools.get_default_exes(default_dirname, cluster) parser.addoption( '--cluster', action='store', default=cluster, help= '--cluster=<cluster> to specify the cluster being run on, for the purpose of determing which commands to use. Default the current cluster' ) parser.addoption( '--dirname', action='store', default=default_dirname, help='--dirname=<path_to_dir> specifies the top-level directory') parser.addoption('--exes', action='store', default=default_exes, help='--exes={compiler_name: path}') parser.addoption( '--weekly', action='store_true', default=False, help= '--weekly specifies that the test should ONLY be run weekly, not nightly. Default False' ) # For local testing only parser.addoption( '--data-reader-percent', action='store', default=None, help= '--data-reader-percent=<percent of dataset to be used>. Default None. Note that 1.0 is 100%.' ) parser.addoption('--exe', action='store', help='--exe=<hand-picked executable>')