aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-06-03 23:09:32 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-06-06 09:42:14 +0200
commit0dec4e6f7a90a3b6c992ef212eefa058c4f7ce9a (patch)
tree0cfcf8491c09bb09173d2a82dd40e7b5104937e6 /scripts
parent06831001ac8949b0801e0d20c347d97339769a20 (diff)
scripts: remove dead file
scripts/test-driver.py was used when "make check" was already using meson introspection data, but it did not execute "meson test". It is dead since commit 3d2f73ef75e ("build: use "meson test" as the test harness", 2021-12-23). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test-driver.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/test-driver.py b/scripts/test-driver.py
deleted file mode 100644
index eef74b29a8..0000000000
--- a/scripts/test-driver.py
+++ /dev/null
@@ -1,35 +0,0 @@
-#! /usr/bin/env python3
-
-# Wrapper for tests that hides the output if they succeed.
-# Used by "make check"
-#
-# Copyright (C) 2020 Red Hat, Inc.
-#
-# Author: Paolo Bonzini <pbonzini@redhat.com>
-
-import subprocess
-import sys
-import os
-import argparse
-
-parser = argparse.ArgumentParser(description='Test driver for QEMU')
-parser.add_argument('-C', metavar='DIR', dest='dir', default='.',
- help='change to DIR before doing anything else')
-parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
- help='be more verbose')
-parser.add_argument('test_args', nargs=argparse.REMAINDER)
-
-args = parser.parse_args()
-os.chdir(args.dir)
-
-test_args = args.test_args
-if test_args[0] == '--':
- test_args = test_args[1:]
-
-if args.verbose:
- result = subprocess.run(test_args, stdout=None, stderr=None)
-else:
- result = subprocess.run(test_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- if result.returncode:
- sys.stdout.buffer.write(result.stdout)
-sys.exit(result.returncode)