I have a inspec test as shown below
describe command('mvn -version) do
its('exit_status') {should eq 0 }
end
on running the test case is failing as exit status after running the command on the machine is coming 127. But I can confirm that maven is installed on the machine and when I test exit status manually on the machine , it's 0