generic: add missing runtime checks for mknod/mkfifo
authorVladimir Zapolskiy <vladimir@tuxera.com>
Tue, 21 Jul 2020 09:38:30 +0000 (12:38 +0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 26 Jul 2020 15:17:18 +0000 (23:17 +0800)
Some generic tests explicitly run 'mknod' or 'mkfifo' command, however
the correspondent runtime check is missing, this results in a test
failure instead of selecting not to execute the test.

The change adds _require_mknod check to the next generic tests:

  * generic/157
  * generic/158
  * generic/294
  * generic/423

Signed-off-by: Vladimir Zapolskiy <vladimir@tuxera.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/157
tests/generic/158
tests/generic/294
tests/generic/423

index 09b42bc9d8c837ba3205eb7cfff33a9860a2daa5..cdd29af30dd1baa6600d85ade8290ebab541c946 100755 (executable)
@@ -31,6 +31,7 @@ _cleanup()
 _supported_os Linux
 _require_test_reflink
 _require_scratch_reflink
+_require_mknod
 
 rm -f $seqres.full
 
index 369aad8b2eb5821bd50abc9c5abd4a3febadd747..173090a3d40cb8c6df554bbd3119e389a0848c2f 100755 (executable)
@@ -31,6 +31,7 @@ _cleanup()
 _supported_os Linux
 _require_test_dedupe
 _require_scratch_dedupe
+_require_mknod
 
 rm -f $seqres.full
 
index 32c89b039374a74d94e4a34a2b8d908d1dfc2aa5..bc13185e937c42aa1021fc8f19817c058b062b58 100755 (executable)
@@ -33,6 +33,7 @@ _supported_fs generic
 _supported_os Linux
 _require_scratch
 _require_symlinks
+_require_mknod
 
 rm -f $seqres.full
 _scratch_mkfs > $seqres.full 2>&1 || _fail "Could not mkfs scratch device"
index 6db55fd6f7577b01f522e2fc5ec8188b760ba578..fd538a1b029d6aa3c476c02fc13a1b4fd2c3e6ff 100755 (executable)
@@ -39,6 +39,7 @@ _require_test_program "stat_test"
 _require_test_program "af_unix"
 _require_statx
 _require_symlinks
+_require_mknod
 
 function check_stat () {
        $here/src/stat_test $* || echo stat_test failed