diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-12-03 16:16:19 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-12-03 17:08:04 +0000 |
commit | 8672311d6fe8b4c236b3a2d59c9429bcfacc185a (patch) | |
tree | 7bb488ac7cd959b32ce279f9318db5bf3d598b38 | |
parent | a715fc7d8446d4f64df4e6f043f5c7b9822911e5 (diff) |
Give a clearer error if the library hasn't been built0.1.0
-rwxr-xr-x | test.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -13,12 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -import subprocess import glob import os +import subprocess +import sys -if not os.path.exists("build"): - os.mkdir("build") +if not os.path.exists("build/libolm.so"): + print >> sys.stderr, \ + "libolm has not been built. Run ./build_shared_library.py first." + exit(1) test_files = glob.glob("tests/test_*.cpp") |