fix the firefox tests

This commit is contained in:
eyedeekay
2023-07-11 14:20:14 -04:00
parent db3020c389
commit 6a6e688c87
3 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Tue Jul 11 13:46:29 EDT 2023 #Tue Jul 11 14:18:18 EDT 2023
=\=\=\=\=\=\= =\=\=\=\=\=\=
<<<<<<<=HEAD <<<<<<<=HEAD
>>>>>>>=7cdf84bb265e7fda5b98d2386dab1855de8383eb >>>>>>>=7cdf84bb265e7fda5b98d2386dab1855de8383eb
build.number=523 build.number=525

View File

@ -130,7 +130,6 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
private boolean undoHomepage(File fileToBeModified) { private boolean undoHomepage(File fileToBeModified) {
String oldStringToFind = "\"browser.startup.homepage\", true"; String oldStringToFind = "\"browser.startup.homepage\", true";
String newStringToReplace = "\"browser.startup.homepage\", \"http://127.0.0.1:7657\""; String newStringToReplace = "\"browser.startup.homepage\", \"http://127.0.0.1:7657\"";
try (Scanner scanner = new Scanner(fileToBeModified)) { try (Scanner scanner = new Scanner(fileToBeModified)) {
while (scanner.hasNextLine()) { while (scanner.hasNextLine()) {
String line = scanner.nextLine(); String line = scanner.nextLine();
@ -141,7 +140,6 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
// handle this // handle this
} }
return true; return true;
} }

View File

@ -1,7 +1,7 @@
#! /usr/bin/env sh #! /usr/bin/env sh
ant distclean ant distclean
cd src && ant jar && cd .. ant jar
rm -rf i2p.chromium.base.profile i2p.chromium.profile i2p.firefox.base.profile i2p.firefox.profile i2p.firefox.usability.profile tor-browser_en-US rm -rf i2p.chromium.base.profile i2p.chromium.profile i2p.firefox.base.profile i2p.firefox.profile i2p.firefox.usability.profile tor-browser_en-US