From d66a9b3e557943002413c15dde854eafdb59781e Mon Sep 17 00:00:00 2001
From: "lixuefeng (Cloud)"
Date: Sat, 25 May 2019 20:23:42 +0800
Subject: [PATCH 1/2] add comment for step2 Signed-off-by: lixuefeng (Cloud)
---
docs/QUICKSTART.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/QUICKSTART.md b/docs/QUICKSTART.md
index d56d97c262..eb3eaf893e 100644
--- a/docs/QUICKSTART.md
+++ b/docs/QUICKSTART.md
@@ -41,9 +41,10 @@ to the client in the `tufclient` directory.
We'll create a target file that will later be delivered as an update to clients.
Metadata about that file will be created and signed, and added to the
-repository's metadata.
+repository's metadata.
```Bash
+# be in the same directory as step 1
$ echo 'Test file' > testfile
$ repo.py --add testfile
$ tree tufrepo/
From 23010971f777fa7d54a6dc8d5fcb5bcf613e59ca Mon Sep 17 00:00:00 2001
From: "lixuefeng (Cloud)"
Date: Sat, 25 May 2019 20:58:50 +0800
Subject: [PATCH 2/2] just format Signed-off-by: lixuefeng (Cloud)
---
tests/test_arbitrary_package_attack.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/test_arbitrary_package_attack.py b/tests/test_arbitrary_package_attack.py
index f37abef425..8c92a1ec16 100755
--- a/tests/test_arbitrary_package_attack.py
+++ b/tests/test_arbitrary_package_attack.py
@@ -83,9 +83,9 @@ def setUpClass(cls):
command = ['python', 'simple_server.py', str(cls.SERVER_PORT)]
cls.server_process = subprocess.Popen(command, stderr=subprocess.PIPE)
logger.info('Server process started.')
- logger.info('Server process id: '+str(cls.server_process.pid))
- logger.info('Serving on port: '+str(cls.SERVER_PORT))
- cls.url = 'http://localhost:'+str(cls.SERVER_PORT) + os.path.sep
+ logger.info('Server process id: ' + str(cls.server_process.pid))
+ logger.info('Serving on port: ' + str(cls.SERVER_PORT))
+ cls.url = 'http://localhost:' + str(cls.SERVER_PORT) + os.path.sep
# NOTE: Following error is raised if a delay is not applied:
#
@@ -104,7 +104,7 @@ def tearDownClass(cls):
# Kill the SimpleHTTPServer process.
if cls.server_process.returncode is None:
- logger.info('Server process '+str(cls.server_process.pid)+' terminated.')
+ logger.info('Server process ' + str(cls.server_process.pid) + ' terminated.')
cls.server_process.kill()