I have the below script which is trying to get the pass percentage through shell script.
Script:
n= "$pass"/"$total";
"$n" * = 100;
echo "$n"
Output:
/tmp/jenkins3601870177535319162.sh: line 45: 20/25*=: No such file or directory 20/25
I'm not sure the above calculation is correct. But I just have variable $pass which is having pass test case count and $total variable which had total test case count. Just wanna get percentage of the passed test cases using shell.