Make tools/settings.py lighter (#1327)

It should not import things it does not use and it should define
settings data only (i.e., definition of functions should not happen
there).

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2016-09-07 08:29:06 +02:00
committed by Tilmann Scheller
parent caee6f738e
commit ebbacfc319
3 changed files with 16 additions and 19 deletions
-12
View File
@@ -15,10 +15,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import subprocess
import sys
from subprocess import CalledProcessError
from os import path
TOOLS_DIR = path.dirname(path.abspath(__file__))
@@ -33,11 +29,3 @@ SIGNED_OFF_SCRIPT = path.join(TOOLS_DIR, 'check-signed-off.sh')
VERA_SCRIPT = path.join(TOOLS_DIR, 'check-vera.sh')
TEST_RUNNER_SCRIPT = path.join(TOOLS_DIR, 'runners/run-test-suite.sh')
UNITTEST_RUNNER_SCRIPT = path.join(TOOLS_DIR, 'runners/run-unittests.sh')
def run_check(runnable):
try:
ret = subprocess.check_call(runnable)
except CalledProcessError as e:
return e.returncode
return ret