How do you check the relay if the open roof is in the way on a 1991 Pontiac sunbird with a convertible top When the top is open and will not close?

In the trunk of the car find the wires and unplug them. Take a wire known to be hot and touch the wire. One is for up and one is for down. If they work then the relay is bad. If it still doesn't work it is the motor itself.