summaryrefslogtreecommitdiff
path: root/libre/phoronix-test-suite/0001-Don-t-download-online-tests.patch
blob: 2ffabf21f36c0c5552f41393885793d02aacb19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From c6e3cf9dafab33d9484a38e211aafd8a5a26f927 Mon Sep 17 00:00:00 2001
From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Date: Sat, 8 Feb 2020 07:35:10 +0100
Subject: [PATCH] Don't download online tests

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 pts-core/objects/pts_openbenchmarking.php | 19 +------------------
 pts-core/user-agreement.txt               |  2 +-
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/pts-core/objects/pts_openbenchmarking.php b/pts-core/objects/pts_openbenchmarking.php
index ccfce89a1..50d629646 100644
--- a/pts-core/objects/pts_openbenchmarking.php
+++ b/pts-core/objects/pts_openbenchmarking.php
@@ -463,7 +463,7 @@ class pts_openbenchmarking
 	}
 	public static function linked_repositories()
 	{
-		$repos = array('local', 'pts', 'system', 'git');
+		$repos = array('local');
 
 		if(PTS_IS_CLIENT && phodevi::is_windows())
 		{
@@ -671,23 +671,6 @@ class pts_openbenchmarking
 	}
 	public static function phoromatic_server_ob_cache_request($type_request, $repo = null, $test = null)
 	{
-		if(PTS_IS_CLIENT == false)
-		{
-			return null;
-		}
-
-		$archived_servers = pts_client::available_phoromatic_servers();
-
-		foreach($archived_servers as $archived_server)
-		{
-			$cache = pts_network::http_get_contents('http://' . $archived_server['ip'] . ':' . $archived_server['http_port'] . '/openbenchmarking-cache.php?' . $type_request . '&repo=' . $repo . '&test=' . $test);
-
-			if(!empty($cache))
-			{
-				return $cache;
-			}
-		}
-
 		return null;
 	}
 	public static function available_tests($download_tests = true, $all_versions = false, $append_versions = false, $show_deprecated_tests = false, $only_show_available_cached_tests = false)
diff --git a/pts-core/user-agreement.txt b/pts-core/user-agreement.txt
index 92a2eb2ce..eb77b11ab 100644
--- a/pts-core/user-agreement.txt
+++ b/pts-core/user-agreement.txt
@@ -1,6 +1,6 @@
 Phoronix Test Suite User Agreement / Notices:
 
-- The Phoronix Test Suite is open-source and licensed under the GNU GPLv3. A copy of the GPLv3 license is included with this software or can also be found at https://www.gnu.org/licenses/gpl-3.0.en.html. However, some tests supported by the Phoronix Test Suite are not open-source software or require commercial software packages.
+- The Phoronix Test Suite is free software and licensed under the GNU GPLv3. A copy of the GPLv3 license is included with this software or can also be found at https://www.gnu.org/licenses/gpl-3.0.en.html. However, some tests originally supported by the Phoronix Test Suite are not free software and were removed in Parabola.
 
 - The Phoronix Test Suite contains tests which may stress your system and in some cases could exhibit stability problems of the system's hardware or software configuration. The Phoronix Test Suite is provided WITHOUT ANY WARRANTY. In no event shall OpenBenchmarking.org, Phoromatic, Phoronix Media, the Phoronix Test Suite, or any associated stakeholder be liable to any party for any direct or indirect damages for any use of OpenBenchmarking.org -- including, without limitation, any lost profits, business interruption, loss of programs, loss of programmed data, or otherwise.
 
-- 
2.25.0