Whamcloud - gitweb
Minor change - rename "run" to "test_fail" to match runfailure-mds.
authoradilger <adilger>
Tue, 9 Apr 2002 00:03:43 +0000 (00:03 +0000)
committeradilger <adilger>
Tue, 9 Apr 2002 00:03:43 +0000 (00:03 +0000)
lustre/tests/runfailure-net

index bb8c8dd..a8e53c7 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -vx
 
-run() {
+test_fail() {
        echo $1 > /proc/sys/lustre/fail_loc
        shift
        $* &
@@ -19,34 +19,34 @@ mknod /dev/request c 10 244
 sh llmount.sh
 
 # GETATTR_NET - ls will hang on the getattr
-run 0x102 ls -l /mnt/lustre
+test_fail 0x102 ls -l /mnt/lustre
 
 # READPAGE_NET - ls will hang reading in new pages (lost+found is not in cache)
-run 0x104 ls /mnt/lustre
+test_fail 0x104 ls /mnt/lustre
 
 sleep 1
 
 # REINT_NET - touch will hang on setattr
-run 0x107 touch /mnt/lustre
+test_fail 0x107 touch /mnt/lustre
 
 # REINT_NET - touch will hang on create
-run 0x107 touch /mnt/lustre/tt
+test_fail 0x107 touch /mnt/lustre/tt
 
 # REINT_NET - mv will hang on rename
 touch /mnt/lustre/foo
-run 0x107 mv /mnt/lustre/foo /mnt/lustre/bar
+test_fail 0x107 mv /mnt/lustre/foo /mnt/lustre/bar
 
 # REINT_NET - rm will hang on unlink
 touch /mnt/lustre/salmon
-run 0x107 rm /mnt/lustre/salmon
+test_fail 0x107 rm /mnt/lustre/salmon
 
 # OPEN_NET - touch will hang on open
 touch /mnt/lustre/foo
-run 0x113 cat /mnt/lustre/foo
+test_fail 0x113 cat /mnt/lustre/foo
 
 # CLOSE_NET - ls will hang on close
-run 0x115 ./testreq --close junk_file_handle
+test_fail 0x115 ./testreq --close junk_file_handle
 
 echo 0 > /proc/sys/lustre/fail_loc
 
-echo "Done."
\ No newline at end of file
+echo "Done."