--enable-recompile try raw make if sudo make fails
authorMichael Rash <mbr@cipherdyne.org>
Sat, 3 Nov 2012 22:09:12 +0000 (18:09 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sat, 3 Nov 2012 22:09:12 +0000 (18:09 -0400)
test/test-fwknop.pl

index 04da82c..da23a5a 100755 (executable)
@@ -2476,8 +2476,11 @@ sub compile_warnings() {
 
         unless (&run_cmd("$sudo_path -u $username make",
                 $cmd_out_tmp, "test/$current_test_file")) {
-            chdir $curr_pwd or die $!;
-            return 0;
+            unless (&run_cmd('make', $cmd_out_tmp,
+                    "test/$current_test_file")) {
+                chdir $curr_pwd or die $!;
+                return 0;
+            }
         }
 
     } else {