2.5.4.4. linuxdistro — Manipulating known Linux Distributions

Autotest can have knowledge about the Linux Distribution that was running on a machine during a test their detailed charateristics.

2.5.4.4.1. Functions for procedural like programming

All the default functions are available for getting information.

arc.linuxdistro.get_data()

Returns data in raw format from the Autotest RPC server. By default all data will be returned, unless filtered.

Parameters:
  • connection – an arc.connection.Connection instance
  • data_filter – keyword arguments to filter the data that will be received
Returns:

raw JSON data converted to a Python data structure

arc.linuxdistro.get_ids()

Returns only the numeric identification of existing instances on the server side.

Parameters:
  • connection – an arc.connection.Connection instance
  • data_filter – keyword arguments to filter the data that will be received
Returns:

raw JSON data converted to a Python data structure

2.5.4.4.2. The Host Class

class arc.linuxdistro.LinuxDistro(connection, identification=None, name=None)

Interface for manipulating hosts on an autotest server