Skip tests for cross compilation when they can not be run.

This commit is contained in:
Jussi Pakkanen
2013-08-24 21:33:52 +03:00
parent 6aa1152d72
commit 696f72da1b
2 changed files with 24 additions and 17 deletions

View File

@ -22,7 +22,6 @@ Not part of the main test suite because of two reasons:
Eventually migrate to something fancier.'''
from glob import glob
import os, subprocess, shutil, sys
import environment
@ -32,7 +31,7 @@ test_build_dir = 'work area'
install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir')
meson_command = './meson.py'
extra_flags = ['--cross-file', 'cross/ubuntu-mingw.txt']
extra_flags = ['--cross-file', 'cross/ubuntu-armhf.txt']
ninja_command = environment.detect_ninja()
if ninja_command is None:
raise RuntimeError('Could not find Ninja executable.')