Trying to fix Travis test

This commit is contained in:
Giorgio Calderone 2020-03-19 19:35:32 +01:00
parent 5ada8eab8a
commit c5fddd9107
2 changed files with 5 additions and 3 deletions

View File

@ -79,9 +79,7 @@ end
blocks).
"""
function CheckGnuplotVersion(cmd::AbstractString)
setverbose(true)
icmd = `$(cmd) --version`
@info "Checking gnuplot version with command: " icmd
proc = open(`$icmd`, read=true)
s = String(read(proc))
@ -102,7 +100,7 @@ function CheckGnuplotVersion(cmd::AbstractString)
if ver < v"4.7"
error("gnuplot ver. >= 4.7 is required, but " * string(ver) * " was found.")
end
@info " Gnuplot version: " * string(ver)
#@info " Gnuplot version: " * string(ver)
return ver
end

View File

@ -1,4 +1,8 @@
using Test, Gnuplot
@info "Gnuplot version: " * string(Gnuplot.CheckGnuplotVersion())
CheckGnuplotVersion
Gnuplot.setverbose(true)
push!(Gnuplot.options.init, "set term unknown")
x = [1, 2, 3]
y = [4, 5, 6]