Assuming it's front, it will fail if the brakes are out of balance, which I would think is unlikely just due to a scratch; it won't fail just because of a scratch.
If it's not weakened, insecure or contaminated by oil, grease etc it will not fail on the condition of the disc, though it may have an affect on the braking efficiencies.