Bite one’s nails

To be nervous or anxious about something.

My English students were biting their nails in the hall while waiting for their test score.