bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] [PATCH] Corrections and amplifications to test documentat


From: Darshit Shah
Subject: Re: [Bug-wget] [PATCH] Corrections and amplifications to test documentation.
Date: Fri, 2 Sep 2016 17:50:49 +0200
User-agent: NeoMutt/20160827.15-ee05 (1.7.0)

Pushed after editing the commit message.

* Dale R. Worley <address@hidden> [160825 02:00]:
This is a few improvements to the documentation about tests.  I found
these necessary to run the tests correctly.

Dale

From 9b6b10b6f714e094df11d8ada96d9e675e6fdee6 Mon Sep 17 00:00:00 2001
From: "Dale R. Worley" <address@hidden>
Date: Tue, 23 Aug 2016 17:48:05 -0400
Subject: [PATCH 1/4] Corrections and amplifications to test documentation.

---
testenv/README        | 6 ++++--
testenv/Test-Proto.py | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/testenv/README b/testenv/README
index 86c0d74..656e732 100644
--- a/testenv/README
+++ b/testenv/README
@@ -43,7 +43,8 @@ Working:
================================================================================

The Test Files are valid Python scripts and the default mask for them is 755.
-A singular Test must be invoked in the following manner:
+A singular Test must be invoked in the following manner, with the 
current
+directory being the testenv directory:
$ ./python3 <Name of Test File>      OR
$ ./<Name of Test File>
The script will then initialize the various elements and pass them to an object
@@ -137,7 +138,8 @@ Various variables used consistently across all 
tests are:
    * WGET_URLS: This is a list of filenames which will be appended as the URLs
    to Wget during invocation. This is a list of lists, where WGET_URLS[0]
    represents the list of Filenames called from Server[0], WGET_URLS[1] is a
-    list of files downloaded from Server[2], etc.
+    list of files downloaded from Server[2], etc.  They must be relative 
URLs,
+    i.e., not start with "/".
    * Files: This variable defines the files that exist in the Server's
    filesystem. The Files variable is a list of lists of WgetFile objects.
    This means that File[0] is a list of WgetFile objects that lie on Server[0],
diff --git a/testenv/Test-Proto.py b/testenv/Test-Proto.py
index 6dcbfb6..12f424f 100755
--- a/testenv/Test-Proto.py
+++ b/testenv/Test-Proto.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from sys import exit
from test.http_test import HTTPTest
-from misc.constants import HTTP, HTTPS
+from test.base_test import HTTP, HTTPS
from misc.wget_file import WgetFile

"""
-- 
2.10.0.rc0.17.gd63263a


--
Thanking You,
Darshit Shah

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]