exa/xtests/files_lG_160
Benjamin Sago ef18f9ca91 Protect xtests against different default users
The Vagrant tests assumed that there’d be a user called “vagrant” that would run the tests and create the files by default. Files would be owned by vagrant:vagrant by default, and this worked, until it came time to change that username. The naïve method was a search-and-replace, but this caused problems when the new user’s name wasn’t exactly the same length as the previous one.

So to fix this, we now have our own user, named after the first animal I thought of, that makes the files’ owners and groups independent of the default user of whichever VM image the xtests are running on.

Another place where it was hard-coded was the home directory, which was “/home/vagrant”, where the awkward testcases live. That last one has been changed to just “/testcases”, which has no mention of the user in it.
2017-04-28 19:34:23 +01:00

14 lines
5.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.rw-r--r-- 1.0k cassowary  1 Jan 12:34 1_KiB .rw-r--r-- 5.2M cassowary  1 Jan 12:34 5_MiB .rw-r--r-- 9 cassowary  1 Jan 12:34 9_bytes
.rw-r--r-- 1.0M cassowary  1 Jan 12:34 1_MiB .rw-r--r-- 5 cassowary  1 Jan 12:34 5_bytes .rw-r--r-- 10k cassowary  1 Jan 12:34 10_KiB
.rw-r--r-- 1 cassowary  1 Jan 12:34 1_bytes .rw-r--r-- 6.1k cassowary  1 Jan 12:34 6_KiB .rw-r--r-- 10M cassowary  1 Jan 12:34 10_MiB
.rw-r--r-- 2.0k cassowary  1 Jan 12:34 2_KiB .rw-r--r-- 6.3M cassowary  1 Jan 12:34 6_MiB .rw-r--r-- 10 cassowary  1 Jan 12:34 10_bytes
.rw-r--r-- 2.1M cassowary  1 Jan 12:34 2_MiB .rw-r--r-- 6 cassowary  1 Jan 12:34 6_bytes .rw-r--r-- 11k cassowary  1 Jan 12:34 11_KiB
.rw-r--r-- 2 cassowary  1 Jan 12:34 2_bytes .rw-r--r-- 7.2k cassowary  1 Jan 12:34 7_KiB .rw-r--r-- 11M cassowary  1 Jan 12:34 11_MiB
.rw-r--r-- 3.1k cassowary  1 Jan 12:34 3_KiB .rw-r--r-- 7.3M cassowary  1 Jan 12:34 7_MiB .rw-r--r-- 11 cassowary  1 Jan 12:34 11_bytes
.rw-r--r-- 3.1M cassowary  1 Jan 12:34 3_MiB .rw-r--r-- 7 cassowary  1 Jan 12:34 7_bytes .rw-r--r-- 12k cassowary  1 Jan 12:34 12_KiB
.rw-r--r-- 3 cassowary  1 Jan 12:34 3_bytes .rw-r--r-- 8.2k cassowary  1 Jan 12:34 8_KiB .rw-r--r-- 12M cassowary  1 Jan 12:34 12_MiB
.rw-r--r-- 4.1k cassowary  1 Jan 12:34 4_KiB .rw-r--r-- 8.4M cassowary  1 Jan 12:34 8_MiB .rw-r--r-- 12 cassowary  1 Jan 12:34 12_bytes
.rw-r--r-- 4.2M cassowary  1 Jan 12:34 4_MiB .rw-r--r-- 8 cassowary  1 Jan 12:34 8_bytes .rw-r--r-- 13k cassowary  1 Jan 12:34 13_KiB
.rw-r--r-- 4 cassowary  1 Jan 12:34 4_bytes .rw-r--r-- 9.2k cassowary  1 Jan 12:34 9_KiB .rw-r--r-- 13M cassowary  1 Jan 12:34 13_MiB
.rw-r--r-- 5.1k cassowary  1 Jan 12:34 5_KiB .rw-r--r-- 9.4M cassowary  1 Jan 12:34 9_MiB .rw-r--r-- 13 cassowary  1 Jan 12:34 13_bytes