my 1999 Chevy 1/2 ton didn't pass the first time, good thing that it was actually a PRE TEST & not the actual test that gets turned into the DMV
the smog tech told me to do a series of driving actions to retrain the computer
I recall stopping on a highway on ramp & accelerating to a certain speed & holding it for something like 1 mile & coming to a Stop, then i continued on going through the rest of the actions, i think that all together i drove about 15 miles before turning around & returning to the smog inspection place.
I did pass that test that time
This is more like what you are asking about, the Not Ready part