Skip to content

Commit

Permalink
Fix python path in tests (#2841)
Browse files Browse the repository at this point in the history
Use opt_libexec/bin/python, which works for [email protected],
[email protected], and [email protected] formulae.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Oct 31, 2024
1 parent 77c5be3 commit 140a0b2
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Formula/gz-math7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3", "-c", "import gz.math7"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.math7"
end
end
2 changes: 1 addition & 1 deletion Formula/gz-msgs10.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3", "-c", "import gz.msgs10"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.msgs10"
end
end
2 changes: 1 addition & 1 deletion Formula/gz-msgs11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3.12", "-c", "import gz.msgs11"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.msgs11"
end
end
2 changes: 1 addition & 1 deletion Formula/gz-sim7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3", "-c", "import gz.sim7"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.sim7"
end
end
2 changes: 1 addition & 1 deletion Formula/gz-sim8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3", "-c", "import gz.sim8"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.sim8"
end
end
2 changes: 1 addition & 1 deletion Formula/gz-sim9.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3.12", "-c", "import gz.sim9"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.sim9"
end
end
2 changes: 1 addition & 1 deletion Formula/gz-transport13.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3", "-c", "import gz.transport13"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.transport13"
end
end
2 changes: 1 addition & 1 deletion Formula/gz-transport14.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3.12", "-c", "import gz.transport14"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import gz.transport14"
end
end
2 changes: 1 addition & 1 deletion Formula/sdformat13.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3", "-c", "import sdformat13"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import sdformat13"
end
end
2 changes: 1 addition & 1 deletion Formula/sdformat14.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3", "-c", "import sdformat14"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import sdformat14"
end
end
2 changes: 1 addition & 1 deletion Formula/sdformat15.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3.12", "-c", "import sdformat15"
system Formula["[email protected]"].opt_libexec/"bin/python", "-c", "import sdformat15"
end
end

0 comments on commit 140a0b2

Please sign in to comment.