defmodule FarmbotCore.ProjectTest do
  use ExUnit.Case

  test "arduino_commit" do
    actual = FarmbotCore.Project.arduino_commit()
    expected = "0c4b14eb1bec8d466fbb815bfd7ee13b0b2d8c91"
    # Prevents me from accidentally releasing wrong firmware.
    assert expected == actual
  end
end

defmodule FarmbotCore.ProjectTest do
  use ExUnit.Case
  @opts [cd: Path.join("c_src", "farmbot-arduino-firmware")]

  test "arduino_commit" do
    actual = FarmbotCore.Project.arduino_commit()

    expected =
      System.cmd("git", ~w"rev-parse --verify HEAD", @opts)
      |> elem(0)
      |> String.trim()

    assert expected == actual
  end
end

Revert easy win that was not so easy
Revert easy win that was not so easy

FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os