opencv@2: fix python test

This commit is contained in:
FX Coudert 2017-08-21 16:41:51 +02:00
parent 5bbbb3a6a0
commit 7191ac517b

View file

@ -90,6 +90,9 @@ class OpencvAT2 < Formula
EOS
system ENV.cxx, "test.cpp", "-I#{include}", "-L#{lib}", "-o", "test"
assert_equal version.to_s, shell_output("./test").strip
assert_match version.to_s, shell_output("python -c 'import cv2; print(cv2.__version__)'")
ENV["PYTHONPATH"] = lib/"python2.7/site-packages"
assert_match version.to_s,
shell_output("python -c 'import cv2; print(cv2.__version__)'")
end
end