From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=stephano.cetola@linux.intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9358821106FDE for ; Tue, 4 Sep 2018 10:51:28 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2018 10:51:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,329,1531810800"; d="scan'208";a="230152791" Received: from pequod.jf.intel.com ([134.134.244.106]) by orsmga004.jf.intel.com with ESMTP; 04 Sep 2018 10:51:27 -0700 From: Stephano Cetola To: edk2-devel@lists.01.org Cc: qin.long@intel.com, Stephano Cetola Date: Tue, 4 Sep 2018 10:51:07 -0700 Message-Id: <20180904175107.38605-1-stephano.cetola@linux.intel.com> X-Mailer: git-send-email 2.17.1 Subject: [staging/MicroPythonTestFramework][PATCH] MpyTestFrameworkPkg: use minified jquery source X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 17:51:28 -0000 We should be using the compressed "minified" jquery source file rather than the uncompressed version, as it will reduce the page load times. This updates the relevant FreeMaker templates, the readme, and the setup script. It also corrects a small mistake in the error text of the setup script. Contributed-under: TianoCore Contribution Agreement 1.1. Signed-off-by: Stephano Cetola --- MpyTestFrameworkPkg/README.md | 2 +- .../ReportGenerator/src/main/resources/templates/index.ftl | 2 +- .../src/main/resources/templates/iteration.ftl | 4 ++-- .../src/main/resources/templates/recurrentSequence.ftl | 2 +- MpyTestFrameworkPkg/setup.py | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/MpyTestFrameworkPkg/README.md b/MpyTestFrameworkPkg/README.md index bd1579dcd3..9bcd22d843 100644 --- a/MpyTestFrameworkPkg/README.md +++ b/MpyTestFrameworkPkg/README.md @@ -13,7 +13,7 @@ This test framework is dependent on the MicroPython Interpreter for UEFI: [Micro * Install [Python27](https://www.python.org/). * Install Maven, using the official site tutorial: [Installing Apache Maven](https://maven.apache.org/install.html). JDK 1.8 is preferred. * Download `Chart.bundle.min.js` from the [ChartJS official site](https://github.com/chartjs/Chart.js/releases) and copy it to `MpyTestFrameworkPkg\Report\resources\js` - * Download `jquery-3.3.1.js` from the [JQuery official site](https://jquery.com/download/) and copy it to `MpyTestFrameworkPkg\Report\resources\js` + * Download `jquery-3.3.1.min.js` from the [JQuery official site](https://jquery.com/download/) and copy it to `MpyTestFrameworkPkg\Report\resources\js` ### Configuration diff --git a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/index.ftl b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/index.ftl index ed611f3805..d58c002baf 100644 --- a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/index.ftl +++ b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/index.ftl @@ -3,7 +3,7 @@ ETS Report - + diff --git a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/iteration.ftl b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/iteration.ftl index 82b681c8a4..e3f2490215 100644 --- a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/iteration.ftl +++ b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/iteration.ftl @@ -3,7 +3,7 @@ ETS Report - + @@ -170,4 +170,4 @@ - \ No newline at end of file + diff --git a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/recurrentSequence.ftl b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/recurrentSequence.ftl index d3c263cf91..1d09752095 100644 --- a/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/recurrentSequence.ftl +++ b/MpyTestFrameworkPkg/Tools/ReportGenerator/src/main/resources/templates/recurrentSequence.ftl @@ -3,7 +3,7 @@ ETS Report - + diff --git a/MpyTestFrameworkPkg/setup.py b/MpyTestFrameworkPkg/setup.py index 993a4cc598..4eaf43bfed 100644 --- a/MpyTestFrameworkPkg/setup.py +++ b/MpyTestFrameworkPkg/setup.py @@ -31,8 +31,8 @@ def check_environment(): error_p('Please download Chart.bundle.min.js to MpyTestFrameworkPkg/Report/resources/js folder') return False - if not os.path.exists(origin + '/Report' + '/resources' + '/js' + '/jquery-3.3.1.js'): - error_p('Please download jquery-3.3.1.jsChart.bundle.min.js to MpyTestFrameworkPkg/Report/resources/js folder') + if not os.path.exists(origin + '/Report' + '/resources' + '/js' + '/jquery-3.3.1.min.js'): + error_p('Please download jquery-3.3.1.min.js MpyTestFrameworkPkg/Report/resources/js folder') return False return True @@ -111,4 +111,4 @@ def generate_target(): # Main procedure if check_environment() == True: - generate_target() \ No newline at end of file + generate_target() -- 2.17.1