public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob 790cf452f117610014b65410cdbaa19b1bcd1ae2 900 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
28
29
30
31
32
 
#! /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


class TasstSubData:
    def __init__(self, **kwargs):
        self.__dict__.update(kwargs)


# 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 790cf45 ...
found 790cf45 in https://archives.passt.top/passt-dev/20230516020135.1901256-17-david@gibson.dropbear.id.au/
found bd7994c in https://archives.passt.top/passt-dev/20230516020135.1901256-7-david@gibson.dropbear.id.au/

applying [1/2] 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


applying [2/2] https://archives.passt.top/passt-dev/20230516020135.1901256-17-david@gibson.dropbear.id.au/
diff --git a/avocado/tasst/__init__.py b/avocado/tasst/__init__.py
index bd7994c..790cf45 100644

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

index at:
100644 790cf452f117610014b65410cdbaa19b1bcd1ae2	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).