From fd5fd5466933409d3eea791f90cf38f5c23112ac Mon Sep 17 00:00:00 2001 From: Crysple Date: Wed, 12 Sep 2018 15:52:25 +0800 Subject: [PATCH] support install from venv and travis CI --- Makefile | 3 --- test/naive/run.py | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d042b02fe..279d6c24f 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,6 @@ EXAMPLES_PATH ?= ${HOME}/nni/examples WHOAMI := $(shell whoami) YARN := $(INSTALL_PREFIX)/yarn/bin/yarn PIP_MODE ?= --user -ifdef TRAVIS -undefine PIP_MODE -endif ifdef VIRTUAL_ENV undefine PIP_MODE endif diff --git a/test/naive/run.py b/test/naive/run.py index 387bafa89..239bedcd2 100644 --- a/test/naive/run.py +++ b/test/naive/run.py @@ -76,10 +76,10 @@ if __name__ == '__main__': run() # TODO: check the output of rest server print(GREEN + 'PASS' + CLEAR) - except Exception as e: + except Exception as error: print(RED + 'FAIL' + CLEAR) - print('%r' % e) + print('%r' % error) traceback.print_exc() - raise e + raise error subprocess.run(['nnictl', 'stop'])