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
|
#!/usr/bin/env python3
from sys import exit
from errno import ENXIO
import gi
gi.require_version('Hinoko', '1.0')
from gi.repository import Hinoko
from helper import test_functions
types = {
Hinoko.FwIsoResource: (
'calculate_bandwidth',
),
Hinoko.FwIsoCtxError: (
'quark',
),
Hinoko.FwIsoResourceError: (
'quark',
),
Hinoko.FwIsoResourceAutoError: (
'quark',
),
}
for target_type, functions in types.items():
if not test_functions(target_type, functions):
exit(ENXIO)
|