blob: b377e87bed72cc2bd0cd55683182ffb16e76c078 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
if [ -f /tmp/ps_commEight.txt ]
then
rm /tmp/ps_comm*
fi
if [ -f /tmp/ps_commOne.txt ]
then
ps aux | grep [b]itbake > /tmp/ps_commEight.txt
fileSizeEight=$(cat /tmp/ps_commEight.txt | wc -l)
fileSizeOne=$(cat /tmp/ps_commOne.txt | wc -l)
if [ "$fileSizeOne" -lt "$fileSizeEight" ]
then
echo passed >> hobResults
else
echo failed >> hobResults
fi
else
ps aux | grep [b]itbake > /tmp/ps_commOne.txt
fi
|