From 8a314f0fcbe078c2b9e9663bb4491577dfa51aef Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 17 Jan 2020 04:26:58 +0100 Subject: cpan_testers: workaround disabled nobody account On CentOS7, the error message is: 'This account is currently not available.' --- t/superuser--http.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/superuser--http.t b/t/superuser--http.t index 1477bc8c..625c1076 100644 --- a/t/superuser--http.t +++ b/t/superuser--http.t @@ -58,7 +58,7 @@ sub test_exotic_medium_name { sub run_urpm_cmd_as_user { my ($cmd) = @_; - my $full_cmd = "su nobody -c '" . urpm_cmd($cmd). "'"; + my $full_cmd = "su nobody -s /bin/sh -c '" . urpm_cmd($cmd). "'"; warn "# $full_cmd\n"; `$full_cmd`; } -- cgit v1.2.1