Only those alcohols which upon oxidation give an aldehyde with a "CH3" group attached to CHO group will give iodoform test.
Oxidation of propanone
CH3CH2CH2OH→CH3CH2CHO (not CH3 attached to CHO, so no iodoform test will be given)
(propanoic acid upon oxidation only gives CO2 and H2O)