Before the test, drive for a minimum of 15 minutes. If it isn't, you may fail your vehicle smog check because your vehicle isn't prepared. To avoid this, run your vehicle for 10 to 15 miles before getting a vehicle smog check.