File testsuite-use-python3.patch of Package restic

Index: restic-0.18.0/cmd/restic/cmd_backup_integration_test.go
===================================================================
--- restic-0.18.0.orig/cmd/restic/cmd_backup_integration_test.go
+++ restic-0.18.0/cmd/restic/cmd_backup_integration_test.go
@@ -636,7 +636,7 @@ func TestStdinFromCommand(t *testing.T)
 		StdinFilename: "stdin",
 	}
 
-	testRunBackup(t, filepath.Dir(env.testdata), []string{"python", "-c", "import sys; print('something'); sys.exit(0)"}, opts, env.gopts)
+	testRunBackup(t, filepath.Dir(env.testdata), []string{"python3", "-c", "import sys; print('something'); sys.exit(0)"}, opts, env.gopts)
 	testListSnapshots(t, env.gopts, 1)
 
 	testRunCheck(t, env.gopts)
@@ -652,7 +652,7 @@ func TestStdinFromCommandNoOutput(t *tes
 		StdinFilename: "stdin",
 	}
 
-	err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"python", "-c", "import sys; sys.exit(0)"}, opts, env.gopts)
+	err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"python3", "-c", "import sys; sys.exit(0)"}, opts, env.gopts)
 	rtest.Assert(t, err != nil && err.Error() == "at least one source file could not be read", "No data error expected")
 	testListSnapshots(t, env.gopts, 1)
 
@@ -669,7 +669,7 @@ func TestStdinFromCommandFailExitCode(t
 		StdinFilename: "stdin",
 	}
 
-	err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"python", "-c", "import sys; print('test'); sys.exit(1)"}, opts, env.gopts)
+	err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"python3", "-c", "import sys; print('test'); sys.exit(1)"}, opts, env.gopts)
 	rtest.Assert(t, err != nil, "Expected error while backing up")
 
 	testListSnapshots(t, env.gopts, 0)
@@ -687,7 +687,7 @@ func TestStdinFromCommandFailNoOutputAnd
 		StdinFilename: "stdin",
 	}
 
-	err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"python", "-c", "import sys; sys.exit(1)"}, opts, env.gopts)
+	err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"python3", "-c", "import sys; sys.exit(1)"}, opts, env.gopts)
 	rtest.Assert(t, err != nil, "Expected error while backing up")
 
 	testListSnapshots(t, env.gopts, 0)
openSUSE Build Service is sponsored by