From 4dcda6c32b6f245f059b4d0e987d4799e419e02f Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Sun, 30 Jul 2017 05:16:58 -0700 Subject: [PATCH] Validate that Julia is using our pre-installed conda --- tests/julia/pyplot/verify | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/julia/pyplot/verify b/tests/julia/pyplot/verify index b77bde86..ac8e5c0a 100755 --- a/tests/julia/pyplot/verify +++ b/tests/julia/pyplot/verify @@ -1,6 +1,12 @@ #!/usr/bin/env julia -# We try to plot something, and see if the file saved exists using PyPlot + +# Make sure we are re-using the same conda python +if PyCall.python != "/srv/conda/bin/python" + exit(1) +end + +# We try to plot something, and see if the file saved exists x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x)) plot(x, y, color="red", linewidth=2.0, linestyle="--") savefig("graph.png")