272221e tests: replace reading of magic number by helper function

2 files Authored by Vojtech Juranek 4 years ago, Committed by nsoffer 4 years ago,
    tests: replace reading of magic number by helper function
    
    Introduce helper function for reading sanlock magic numbers. This
    helper function seeks to specified offset in given file and reads
    unsigned int from this position.
    
        
file modified
+9 -16
file modified
+11 -0