not sure how texas works... but in MD you cant get a car through inspection if you have a check engine light or have had your computer cleared within a certain amount of time (10 days maybe?).. mileage is irrelevant iirc... in my old subaru my alternator was freaking out and causing all sorts of malfunctions and lights to come on.. so i of course failed my inspection.. i limped it home, had the light cleared and replaced the alternator, came back a couple weeks later and they passed it, didnt have any idea that id even failed the inspection before, didnt check the alternator or anything to see if it was replaced