forked from intel/cri-resource-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/topology: perform colonoscopy on testdata.
While we can use fake go.mod files to prevent golang tooling from descending into test data directories that contain files with a ':' in their name, this is not enough. There are other tools, unfortunately hosted on non-unix OSes that do not like ':'s in file names. Cloning the repository fails on these and prevents the hosted tools from working at all. As a workaround, hide offending (test data) files in tarballs and introduce unit test setup and cleanup hooks to extract these tarballs on demand. Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
- Loading branch information
Showing
14 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm -fr testdata |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tar -xvzf test-data.tar.gz |
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/class
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/device
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/drm/card1/dev
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/drm/renderD129/dev
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/local_cpulist
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/local_cpus
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/numa_node
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/devices/pci0000:00/0000:00:02.0/vendor
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/topology/testdata/sys/kernel/iommu_groups/42/devices/0000:00:02.0
This file was deleted.
Oops, something went wrong.