Where in CA are you having the truck smog tested? Because that makes a HUGE difference. Let me explain...
The wonderful geniuses in CA legislation created a smog emissions law for diesels which is largely based on the emotions, feelings, competency, and attitude of the smog tech who is inspecting your vehicle the day your truck is in the test bay.
Amongst all the other emissions requirements for your year truck which I wont go into since it doesnt seem to be relevant here... CA smog law says that the tech must "snap" the throttle from idle to WOT one time and then walk to the back of the vehicle. In that approx three second time frame it takes to move from the cab to the rear of the vehicle, any exhaust smoke from the pipe must have dissipated into the air. If there is still excessive smoke present then the tech can fail the vehicle. This snap test is performed three times during the inspection procedure.
Now the problem is, most techs wont bother to get out of the drivers seat and walk to the back of the vehicle. Instead they'll adjust the passenger mirror so they can see back there or simply look out the back window. Thus effectively skewing that three second time frame difference which allows the smoke to dissipate. This is more a problem when your truck is sitting in doors too since there's very little wind to help with whatever smoke does come out the tail pipe.
Also, the main variable in this situation is how the legislation left it up the tech to decide on their own personal feelings that day whether or not what they see is "excessive" smoke. No computer or sensor is involved in this decision... Meaning, if the tech is upset that their girlfriend dumped them last night, or their fantasy football team sucked during the week, or they merely hate their job, then you're potentially screwed and just may fail a $50 - $60 test.
So...in point. Find a shop you trust and find a shop thats far enough away from liberal southern CA wackiness and you should be fine unless your truck is smoking like a pig for whatever reason.