get away with (罰せられずに済む): He tried to cheat on the test, but he didn’t get away with it. (彼は試験でカンニングしようとしたが、それは許されませんでした)

He tried to cheat on the test, but he didn’t get away with it.