AFAIK it's not up to them to pass or fail you, your car is connected to a machine and that decides to pass or fail you
That's for the emissions.
I assume based on what bubkiz wrote that there's a safety element to the inspection as well, where the mechanic visually inspects the tire treads, breaks etc.