@@ -746,10 +746,11 @@ jobs:
746746 # The account also has empty gecos fields.
747747 # To work around these issues for pinky (and who) tests, we create a fake utmp file with a
748748 # system boot entry and a login entry for the GH runner account.
749- FAKE_UTMP_2='[2] [00000] [~~ ] [reboot] [~ ] [6.0.0-test] [0.0.0.0] [2022-02-22T22:11:22,222222+00:00]'
750- FAKE_UTMP_7='[7] [999999] [tty2] [runner] [tty2] [ ] [0.0.0.0] [2022-02-22T22:22:22,222222+00:00]'
751- FAKE_UTMP_LIVE='[7] [1] [tty3] [runner] [tty3] [ ] [0.0.0.0] [2022-02-22T22:22:22,222222+00:00]'
752- (echo "$FAKE_UTMP_2" ; echo "$FAKE_UTMP_7" ; echo "$FAKE_UTMP_LIVE") | sudo utmpdump -r -o /var/run/utmp
749+ printf '%s\n%s\n%s' \
750+ '[2] [00000] [~~ ] [reboot ] [~ ] [6.0.0-test ] [0.0.0.0 ] [2022-02-22T22:11:22,222222+0000]' \
751+ '[7] [999999] [tty2] [runner ] [tty2 ] [ ] [0.0.0.0 ] [2022-02-22T22:22:22,222222+0000]' \
752+ '[7] [00001] [tty3] [runner ] [tty3 ] [ ] [0.0.0.0 ] [2022-02-22T22:22:22,222222+0000]' \
753+ | sudo utmpdump -r -o /var/run/utmp
753754 # ... and add a full name to each account with a gecos field but no full name.
754755 sudo sed -i 's/:,/:runner name,/' /etc/passwd
755756 # We also create a couple optional files pinky looks for
@@ -1108,10 +1109,11 @@ jobs:
11081109 # The account also has empty gecos fields.
11091110 # To work around these issues for pinky (and who) tests, we create a fake utmp file with a
11101111 # system boot entry and a login entry for the GH runner account.
1111- FAKE_UTMP_2='[2] [00000] [~~ ] [reboot] [~ ] [6.0.0-test] [0.0.0.0] [2022-02-22T22:11:22,222222+00:00]'
1112- FAKE_UTMP_7='[7] [999999] [tty2] [runner] [tty2] [ ] [0.0.0.0] [2022-02-22T22:22:22,222222+00:00]'
1113- FAKE_UTMP_LIVE='[7] [1] [tty3] [runner] [tty3] [ ] [0.0.0.0] [2022-02-22T22:22:22,222222+00:00]'
1114- (echo "$FAKE_UTMP_2" ; echo "$FAKE_UTMP_7"; echo "$FAKE_UTMP_LIVE") | sudo utmpdump -r -o /var/run/utmp
1112+ printf '%s\n%s\n%s' \
1113+ '[2] [00000] [~~ ] [reboot ] [~ ] [6.0.0-test ] [0.0.0.0 ] [2022-02-22T22:11:22,222222+0000]' \
1114+ '[7] [999999] [tty2] [runner ] [tty2 ] [ ] [0.0.0.0 ] [2022-02-22T22:22:22,222222+0000]' \
1115+ '[7] [00001] [tty3] [runner ] [tty3 ] [ ] [0.0.0.0 ] [2022-02-22T22:22:22,222222+0000]' \
1116+ | sudo utmpdump -r -o /var/run/utmp
11151117 # ... and add a full name to each account with a gecos field but no full name.
11161118 sudo sed -i 's/:,/:runner name,/' /etc/passwd
11171119 # We also create a couple optional files pinky looks for
0 commit comments