sudo hostname <other hostname> ./mysql-test-run.pl --mem <name of test>
Good values for <other hostname> to check are "0", "bbb", "mmm", "zzz".