Skip to content

Commit

Permalink
Fix deprecated File.exists? in update_suite.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 11, 2023
1 parent f2b002d commit 1128aba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/update_suite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def clearline

$goblint = File.join(Dir.getwd,"goblint")
goblintbyte = File.join(Dir.getwd,"goblint.byte")
if File.exists?(goblintbyte) then
if File.exist?(goblintbyte) then
puts "Running the byte-code version! Continue? (y/n)"
exit unless $stdin.gets()[0] == 'y'
$goblint = goblintbyte
Expand All @@ -50,11 +50,11 @@ def clearline
end
$vrsn = `#{$goblint} --version`

if not File.exists? "linux-headers" then
if not File.exist? "linux-headers" then
puts "Missing linux-headers, will download now!"
`make headers`
end
has_linux_headers = File.exists? "linux-headers" # skip kernel tests if make headers failed (e.g. on opam-repository opam-ci where network is forbidden)
has_linux_headers = File.exist? "linux-headers" # skip kernel tests if make headers failed (e.g. on opam-repository opam-ci where network is forbidden)

#Command line parameters
#Either only run a single test, or
Expand Down

0 comments on commit 1128aba

Please sign in to comment.