How many tries do I have to pass the CDL tests?

CDL Knowledge (written) Tests: Upon payment of all applicable fees, you have unlimited attempts to pass the knowledge tests. For a multipart test, if you fail a section but pass another, you receive credit for the passed sections and do not have to repeat them. 

CDL Skills Tests: After obtaining a CDL instruction permit, you may take the skills tests, consisting of a pre-trip inspection, skills test and road test. Upon payment of the skills test fees, you have unlimited attempts to pass the skills tests. The skills test has three parts. If you fail a section but pass another, you receive credit for the passed sections and do not have to repeat them. 

NOTE: If the permit has expired, all knowledge tests must be taken again to obtain a new permit before making another attempt at the skills tests. The CDL instruction permit is valid for twelve months.