b05147c356
Change patch format to remove Git version * Patches 0001-0122 only have the patch format modified Update to the head of the upstream staging branch plus redhat patches * Patches 0123-0134 & 1036-0142 are from the upstream staging branch * Patches 0143-1046 have been submitted upstream * Patch 0156 is a Red Hat only patch. Red Hat udev rules set ID_SERIAL from 60-persistent-storage.rules instead of 55-scsi-sg3_id.rules. Multipath's parse_vpd_pg83() function needs to match the ID_SERIAL value from udev. Rename files * Previous patches 0123-0132 are now patches 1035 & 0147-0155
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Martin Wilck <mwilck@suse.com>
|
|
Date: Fri, 18 Dec 2020 22:18:20 +0100
|
|
Subject: [PATCH] github workflow: use zram device as test block device
|
|
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
---
|
|
.github/workflows/build-and-unittest.yaml | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
|
|
diff --git a/.github/workflows/build-and-unittest.yaml b/.github/workflows/build-and-unittest.yaml
|
|
index 2b13c65c..ef55b8c1 100644
|
|
--- a/.github/workflows/build-and-unittest.yaml
|
|
+++ b/.github/workflows/build-and-unittest.yaml
|
|
@@ -5,6 +5,14 @@ jobs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
+ - name: mpath
|
|
+ run: sudo modprobe dm_multipath
|
|
+ - name: zram
|
|
+ run: sudo modprobe zram num_devices=0
|
|
+ - name: zram-device
|
|
+ run: echo ZRAM=$(sudo cat /sys/class/zram-control/hot_add) >> $GITHUB_ENV
|
|
+ - name: set-zram-size
|
|
+ run: echo 1G | sudo tee /sys/block/zram$ZRAM/disksize
|
|
- name: dependencies
|
|
run: >
|
|
sudo apt-get install --yes gcc
|
|
@@ -15,3 +23,7 @@ jobs:
|
|
run: make -O -j$(grep -c ^processor /proc/cpuinfo)
|
|
- name: test
|
|
run: make -O -j$(grep -c ^processor /proc/cpuinfo) test
|
|
+ - name: clean-nonroot-artifacts
|
|
+ run: rm -f tests/dmevents.out tests/directio.out
|
|
+ - name: root-test
|
|
+ run: sudo make DIO_TEST_DEV=/dev/zram$ZRAM test
|