~jfb-tempo-consulting/unifield-wm/sync-env-py3

« back to all changes in this revision

Viewing changes to mkdb.py

  • Committer: jf
  • Date: 2013-11-28 17:32:19 UTC
  • Revision ID: jfb@tempo-consulting.fr-20131128173219-tys6olr5qlteepom
[IMP] Disable confusing option update-code

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    parser.add_argument("--nodrop", "-n", action='store_true', default=False, help="Don't drop existing db")
72
72
    parser.add_argument("--nodump", action='store_true', default=False, help="Disable dbs dump at the end")
73
73
    parser.add_argument("--log-to-file", action='store_true', default=False, help="Log the unittest")
74
 
    parser.add_argument("--update-code", action='store_true', default=False, help="Update the code and restart servers if needed")
75
 
    parser.add_argument('unit_test_option', nargs='*', help='Tests to start: server_creation hq01_creation coordo01_creation dump_all ...')
 
74
    #parser.add_argument("--update-code", action='store_true', default=False, help="Update the code and restart servers if needed")
 
75
    parser.add_argument('unit_test_option', nargs='*', help='Tests to start: server_creation hq01_creation coordo01_creation dump_all update_branches ...')
76
76
 
77
77
 
78
78
    o = parser.parse_args()
81
81
    elif o.unit_test_option and 'dump_all' not in o.unit_test_option:
82
82
        o.unit_test_option.append('dump_all')
83
83
 
84
 
    if o.update_code or 'update_branches' in  o.unit_test_option:
85
 
        skipBranchesUpdate = False
86
 
        if o.unit_test_option and 'update_branches' not in o.unit_test_option:
87
 
            o.unit_test_option.insert(0, 'update_branches')
 
84
    #if o.update_code or 'update_branches' in  o.unit_test_option:
 
85
    #    skipBranchesUpdate = False
 
86
    #    if o.unit_test_option and 'update_branches' not in o.unit_test_option:
 
87
    #        o.unit_test_option.insert(0, 'update_branches')
88
88
 
89
89
    sys.argv = [sys.argv[0]] + o.unit_test_option
90
90
    skipDrop = o.nodrop