Skip to content

Commit 132b13a

Browse files
committed
gnu-tests: create full partition for tac-continue
tac/tac-continue test needs a temporary directory which is on a partition in which you can still create files, but where no free space is left.
1 parent 7c62885 commit 132b13a

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/GnuTests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: GnuTests
22

3-
# spell-checker:ignore (abbrev/names) CodeCov gnulib GnuTests Swatinem
3+
# spell-checker:ignore (abbrev/names) CodeCov gnulib GnuTests Swatinem tmpfs
44
# spell-checker:ignore (jargon) submodules devel
55
# spell-checker:ignore (libs/utils) autopoint chksum getenforce gperf lcov libexpect limactl pyinotify setenforce shopt texinfo valgrind libattr libcap taiki-e
66
# spell-checker:ignore (options) Ccodegen Coverflow Cpanic Zpanic
77
# spell-checker:ignore (people) Dawid Dziurla * dawidd dtolnay
88
# spell-checker:ignore (vars) FILESET SUBDIRS XPASS
9-
109
# * note: to run a single test => `REPO/util/run-gnu-test.sh PATH/TO/TEST/SCRIPT`
1110

1211
on:
@@ -115,6 +114,16 @@ jobs:
115114
cd 'uutils'
116115
env PROFILE=release-small bash util/build-gnu.sh
117116
117+
### Test environment setup
118+
- name: Setup specific GNU tests environment
119+
shell: bash
120+
run: |
121+
# for tac/tac-continue test
122+
export FULL_PARTITION_TMPDIR=/mnt/full_partition
123+
sudo mount --mkdir=0777 --types tmpfs --options size=1M tmpfs $FULL_PARTITION_TMPDIR
124+
dd if=/dev/zero of=$FULL_PARTITION_TMPDIR/data bs=1M count=1
125+
echo "FULL_PARTITION_TMPDIR=$FULL_PARTITION_TMPDIR" >> $GITHUB_ENV
126+
118127
### Run tests as user
119128
- name: Run GNU tests
120129
shell: bash

util/why-skip.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
= timeout returned 142. SIGALRM not handled? =
3636
* tests/misc/timeout-group.sh
3737

38-
= FULL_PARTITION_TMPDIR not defined =
39-
* tests/misc/tac-continue.sh
40-
4138
= can't get window size =
4239
* tests/misc/stty-row-col.sh
4340

0 commit comments

Comments
 (0)