From f0107beb9ec177d37ba2651710660e218c553fd7 Mon Sep 17 00:00:00 2001 From: Jacob Trimble Date: Thu, 4 Jun 2020 14:30:14 -0700 Subject: [PATCH] Make some of the test args better. Change-Id: I473f3318c6913e78f60a19166a54f7c873078b73 --- packager/app/test/test_env.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packager/app/test/test_env.py b/packager/app/test/test_env.py index be5c2fab47..8f3de3b3ca 100644 --- a/packager/app/test/test_env.py +++ b/packager/app/test/test_env.py @@ -26,9 +26,10 @@ SRC_DIR = os.path.join(SCRIPT_DIR, os.pardir, os.pardir) # Parse arguments and calculate dynamic global objects and attributes. parser = argparse.ArgumentParser() -parser.add_argument('--test_update_golden_files', default=0, type=int) +parser.add_argument('--test_update_golden_files', action='store_true') -parser.add_argument('--libpackager_type', default='static_library') +parser.add_argument('--libpackager_type', default='static_library', + choices=['static_library', 'shared_library']) parser.add_argument('--v') parser.add_argument('--vmodule')