]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.python/py-cmd.exp
Use "require" for Python tests
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.python / py-cmd.exp
index 707068899faa2be4775485920326155dd60104fd..0eb785f6d4d775b9898d0b57e91105ffe267e23c 100644 (file)
 
 load_lib gdb-python.exp
 
+require !skip_python_tests
+
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
     return -1
 }
 
-# Skip all tests if Python scripting is not enabled.
-if { [skip_python_tests] } { continue }
-
 if {![runto_main]} {
     return 0
 }