From 06febf3c22610a23e2f2650c122cb118f7d918ed Mon Sep 17 00:00:00 2001 From: Crysple Date: Thu, 18 Oct 2018 12:23:15 +0800 Subject: [PATCH 1/3] run.py --- test/naive/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/naive/run.py b/test/naive/run.py index 4f334d0560..f9548ca9ad 100644 --- a/test/naive/run.py +++ b/test/naive/run.py @@ -107,9 +107,10 @@ def run(self, installed = True): if __name__ == '__main__': installed = (sys.argv[-1] != '--preinstall') - ic = Integration_test() + ci = Integration_test() + time.sleep(8) try: - ic.run(installed) + ci.run(installed) # TODO: check the output of rest server print(GREEN + 'PASS' + CLEAR) except Exception as error: From 280781dbb35433415b4b0ee5f0e0586e3bab765c Mon Sep 17 00:00:00 2001 From: Crysple Date: Thu, 18 Oct 2018 12:28:44 +0800 Subject: [PATCH 2/3] test ci --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bc514b2d90..357c785f37 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,6 +16,6 @@ steps: displayName: 'Install dependencies' - script: | cd test/naive - source ~/.bashrc + source $HOME/.bashrc python3 run.py displayName: 'Run tests' From b6d31c5f02784a5d5e5f1c850534b4c3eb52b07a Mon Sep 17 00:00:00 2001 From: Crysple Date: Thu, 18 Oct 2018 12:36:04 +0800 Subject: [PATCH 3/3] test ci --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 357c785f37..e28d5d99fc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,5 +17,8 @@ steps: - script: | cd test/naive source $HOME/.bashrc + export PATH=$HOME/.local/bin:$PATH + nnictl --help + cat $HOME/.local/bin/nnictl python3 run.py displayName: 'Run tests'