public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob bd7994c62591d3f4a4dbccdc350ef9b7bf13bad6 807 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
#! /usr/bin/python3

# SPDX-License-Identifier: GPL-2.0-or-later
#
# tasst - Test A Simple Socket Transport
#         library of test helpers for passt & pasta
#
# Copyright Red Hat
# Author: David Gibson <david@gibson.dropbear.id.au>

import avocado


# Base class for avocado-based passt/pasta tests
class Tasst(avocado.Test):
    # Fairly short default timeout
    timeout = 10.0

    def subsetup(self, class_, subdata):
        assert isinstance(self, class_)
        setattr(self, class_.__name__, subdata)

    def get_subsetup(self, class_):
        assert hasattr(self, class_.__name__), \
            "{}.setUp() needs to call {}.subsetup()".format(self.__class__.__name__,
                                                            class_.__name__)
        return getattr(self, class_.__name__)

debug log:

solving bd7994c ...
found bd7994c in https://archives.passt.top/passt-dev/20230516020135.1901256-7-david@gibson.dropbear.id.au/

applying [1/1] https://archives.passt.top/passt-dev/20230516020135.1901256-7-david@gibson.dropbear.id.au/
diff --git a/avocado/tasst/__init__.py b/avocado/tasst/__init__.py
new file mode 100644
index 0000000..bd7994c

Checking patch avocado/tasst/__init__.py...
Applied patch avocado/tasst/__init__.py cleanly.

index at:
100644 bd7994c62591d3f4a4dbccdc350ef9b7bf13bad6	avocado/tasst/__init__.py

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).