ref: 7bf8c43ed5c66b80bb4c9b1ac1c6fdcfe72b9f19
parent: 81d81dcd58880aadd230a6e23e916daaaeaa01af
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Feb 19 04:04:44 EST 2018
[tests/ar] Don't hardcode the user id in the test Let to the own test to figure out what is the correct number.
--- a/tests/ar/execute/test-q.sh
+++ b/tests/ar/execute/test-q.sh
@@ -67,9 +67,9 @@
ar -tv file.a >$tmp1
cat <<! >$tmp2
-rw-r--r-- 1000/100 Tue Jan 1 00:00:00 1980 file1
-rw-r--r-- 1000/100 Tue Jan 1 00:00:00 1980 file2
-rw-r--r-- 1000/100 Tue Jan 1 00:00:00 1980 file3
+rw-r--r-- `id -u`/`id -g` Tue Jan 1 00:00:00 1980 file1
+rw-r--r-- `id -u`/`id -g` Tue Jan 1 00:00:00 1980 file2
+rw-r--r-- `id -u`/`id -g` Tue Jan 1 00:00:00 1980 file3
!
cmp $tmp1 $tmp2