• Geliang Tang's avatar
    selftests: mptcp: add invert check in check_transfer · 8117dac3
    Geliang Tang authored
    This patch added the invert bytes check for the output data in
    check_transfer().
    
    Instead of the file mismatch error:
    
      [ FAIL ] file received by server does not match (in, out):
      -rw------- 1 root root 45643832 Jan 16 15:04 /tmp/tmp.9xpM6Paivv
      Trailing bytes are:
      MPTCP_TEST_FILE_END_MARKER
      -rw------- 1 root root 45643832 Jan 16 15:04 /tmp/tmp.wnz1Yp4u7Z
      Trailing bytes are:
      MPTCP_TEST_FILE_END_MARKER
    
    Print out the inverted bytes like this:
    
      file received by server has inverted byte at 7454789
      file received by server has inverted byte at 7454790
      file received by server has inverted byte at 7454791
      file received by server has inverted byte at 7454792
    Signed-off-by: default avatarGeliang Tang <geliang.tang@suse.com>
    Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    8117dac3
mptcp_join.sh 56.8 KB