chenke c9277285a3 Fix method 'test_discover' assertError in test_driver.py
The error info as follows:

testtools.matchers._impl.MismatchError: !=:
reference = {'cpid_info': '0000:5e:00.0', 'cpid_type': 'pci'}
actual    = {'cpid_info': u'0000:be:00.0', 'cpid_type': u'pci'}

The reason for assertError is that 'intel-fpga-dev.2' is found
earilier than 'intel-fpga-dev.1' randomly because of the module
'glob.glob'.

In cyborg/accelerator/drivers/fpga/intel/sysinfo.py Line 81,
method all_pf_fpgas(), it use glob.glob(..) to find fpga dirvers.
However, this glob module does not guarantee that the file name
obtained is ordered.

For convenience, we can sort the fpgas before assert.

Reference docs:
https://docs.python.org/2.7/library/glob.html?highlight=glob#glob.glob
https://docs.python.org/2.7/library/os.html?highlight=listdir#os.listdir
http://landcareweb.com/questions/34393/an-ri-qi-shun-xu-sou-suo-glob

Change-Id: Ie9de5d7ec06064f557620ec4ee21f7bd776c2add
2019-03-20 11:47:02 +08:00
2019-03-07 18:37:28 -08:00
2017-03-14 01:16:33 +08:00
2017-08-30 09:27:56 -04:00
2018-06-10 16:37:40 +08:00
2017-01-13 08:08:37 +11:00
2018-07-24 15:10:52 +07:00
2018-08-17 14:47:35 +09:00
2017-09-13 10:51:11 -06:00
2018-12-16 18:22:49 +08:00
2018-05-07 17:42:19 +03:00
2019-01-11 04:53:13 -05:00

Cyborg

OpenStack Acceleration as a Service

Cyborg provides a general management framework for accelerators such as FPGA, GPU, SoCs, NVMe SSDs, CCIX caches, DPDK/SPDK, pmem and so forth.

Features

  • REST API for basic accelerator life cycle management
  • Generic driver for common accelerator support
S
Description
Acceleration Management
Readme 18 MiB
Languages
Python 99%
Shell 0.9%