only add serial for device runs
Merge pull request #22793 from malini/serialfix

Bug 1052609 - only add serial for device runs