forked from cocotools/CoCoTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.py
More file actions
22 lines (20 loc) · 697 Bytes
/
Copy pathmake.py
File metadata and controls
22 lines (20 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python
"""Script to run tests with CI. May do more in the future
"""
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import os
import shutil
import sys
from subprocess import check_call
#-----------------------------------------------------------------------------
# Functions
#-----------------------------------------------------------------------------
def sh(cmd):
"""Execute command in a subshell, return status code."""
print 'CMD:', cmd
return check_call(cmd, shell=True)
def tests():
"""Run tests"""
sh('python cocotools/test/test_*.py')