Finn Harps now know who their opponents will be if they end up in the SSE Airtricity League Promotion/Relegation play-off.
Tonight, Longford Town beat Galway United 2-1 in the Division One promotion play-off final which was held at a neutral venue, the UCD Bowl.
Harps could guarantee their top flight safety on Monday if they beat Waterford in their final league game, and Shamrock Rovers beat Shelbourne.
But if they end up in the play-off, they will take on Longford at a neutral venue.
In tonight's game, Karl Chambers put the midlanders in front in the first half while Aodh Dervin made it 2-0 on 81 minutes.
Veteran Vinny Faherty pulled one back on 88 minutes for the John Caulfield managed side, but Longford held on for victory.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.