Make motiondetect tests clearer
Make motiondetect tests clearer

The method that checks the motiondetect expectations is simplified.

The size of the method is reduced by removing useless local variables and
by using the Bash case command in a better way.

martynjarvis/stb-tester,stb-tester/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,wmanley/stb-tester,martynjarvis/stb-tester,stb-tester/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,wmanley/stb-tester,stb-tester/stb-tester,wmanley/stb-tester,martynjarvis/stb-tester,martynjarvis/stb-tester,stb-tester/stb-tester,martynjarvis/stb-tester,martynjarvis/stb-tester,LewisHaley/stb-tester,wmanley/stb-tester,martynjarvis/stb-tester,wmanley/stb-tester