
import os
import sys

cmds = [
    'python runtests_bootstrap.py',
    'python runtests_bootstrap3.py',
    'python runtests_uniform.py',
]

for cmd in cmds:
    retval = os.system(cmd)
    if retval:
        sys.exit(1)


import os
import sys
import django

if django.VERSION < (1,6):
    cmds = [
        'python runtests_bootstrap_legacy.py',
        'python runtests_bootstrap3_legacy.py',
        'python runtests_uniform_legacy.py',
    ]
else:
    cmds = [
        'python runtests_bootstrap.py',
        'python runtests_bootstrap3.py',
        'python runtests_uniform.py',
    ]

for cmd in cmds:
    retval = os.system(cmd)
    if retval:
        sys.exit(1)

Use old legacy runtest files for Django 1.4
Use old legacy runtest files for Django 1.4

  
  import os
  import sys
+ import django
  
+ if django.VERSION < (1,6):
- cmds = [
+     cmds = [
+         'python runtests_bootstrap_legacy.py',
+         'python runtests_bootstrap3_legacy.py',
+         'python runtests_uniform_legacy.py',
+     ]
+ else:
+     cmds = [
-     'python runtests_bootstrap.py',
+         'python runtests_bootstrap.py',
-     'python runtests_bootstrap3.py',
+         'python runtests_bootstrap3.py',
-     'python runtests_uniform.py',
+         'python runtests_uniform.py',
- ]
+     ]
  
  for cmd in cmds:
      retval = os.system(cmd)
      if retval:
          sys.exit(1)
  
Use old legacy runtest files for Django 1.4
## Code Before:

import os
import sys

cmds = [
    'python runtests_bootstrap.py',
    'python runtests_bootstrap3.py',
    'python runtests_uniform.py',
]

for cmd in cmds:
    retval = os.system(cmd)
    if retval:
        sys.exit(1)

## Instruction:
Use old legacy runtest files for Django 1.4
## Code After:

import os
import sys
import django

if django.VERSION < (1,6):
    cmds = [
        'python runtests_bootstrap_legacy.py',
        'python runtests_bootstrap3_legacy.py',
        'python runtests_uniform_legacy.py',
    ]
else:
    cmds = [
        'python runtests_bootstrap.py',
        'python runtests_bootstrap3.py',
        'python runtests_uniform.py',
    ]

for cmd in cmds:
    retval = os.system(cmd)
    if retval:
        sys.exit(1)
