Green’s Dictionary of Slang

walk the chalk v.

also walk a/the crack, …a chalk, walk chalk, walk the chalk line

[early 19C+] to walk along a chalked line in order to prove one’s sobriety.