Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210360228
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210360228
Commits
4e4117a1
Unverified
Commit
4e4117a1
authored
4 years ago
by
Shylock Hg
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Setup server in user current workspace. (#399)
Co-authored-by:
Yee
<
2520865+yixinglu@users.noreply.github.com
>
parent
93f4c0a2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci/test.sh
+2
-3
2 additions, 3 deletions
ci/test.sh
tests/common/nebula_service.py
+3
-2
3 additions, 2 deletions
tests/common/nebula_service.py
tests/ntr.out-of-source
+0
-1
0 additions, 1 deletion
tests/ntr.out-of-source
with
5 additions
and
6 deletions
ci/test.sh
+
2
−
3
View file @
4e4117a1
...
...
@@ -90,17 +90,16 @@ function run_ctest() {
}
function
run_test
()
{
cd
$BUILD_DIR
/tests
export
PYTHONPATH
=
$PROJ_DIR
:
$PYTHONPATH
testpath
=
$(
cat
$PROJ_DIR
/ci/tests.txt |
sed
"s|
\(
.*
\)
|
$PROJ_DIR
/tests/
\1
|g"
|
tr
'\n'
' '
)
.
/ntr
\
$BUILD_DIR
/tests
/ntr
\
-n
=
8
\
--dist
=
loadfile
\
--debug_log
=
false
\
$testpath
.
/ntr
--debug_log
=
false
$PROJ_DIR
/tests/job/
*
$BUILD_DIR
/tests
/ntr
--debug_log
=
false
$PROJ_DIR
/tests/job/
*
}
function
test_in_cluster
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/common/nebula_service.py
+
3
−
2
View file @
4e4117a1
...
...
@@ -22,8 +22,7 @@ class NebulaService(object):
def
__init__
(
self
,
build_dir
,
src_dir
):
self
.
build_dir
=
build_dir
self
.
src_dir
=
src_dir
self
.
work_dir
=
"
/tmp/nebula-
"
+
str
(
random
.
randrange
(
1000000
,
100000000
))
self
.
work_dir
=
os
.
path
.
join
(
os
.
getcwd
(),
'
build
'
,
'
server
'
)
self
.
pids
=
{}
def
set_work_dir
(
self
,
work_dir
):
...
...
@@ -84,6 +83,8 @@ class NebulaService(object):
return
result
==
0
def
install
(
self
):
if
os
.
path
.
exists
(
self
.
work_dir
):
shutil
.
rmtree
(
self
.
work_dir
)
os
.
mkdir
(
self
.
work_dir
)
print
(
"
work directory:
"
+
self
.
work_dir
)
os
.
chdir
(
self
.
work_dir
)
...
...
This diff is collapsed.
Click to expand it.
tests/ntr.out-of-source
+
0
−
1
View file @
4e4117a1
...
...
@@ -3,5 +3,4 @@
import os, sys
os.environ['NEBULA_BUILD_DIR'] = '@CMAKE_BINARY_DIR@'
os.environ['NEBULA_SOURCE_DIR'] = '@CMAKE_SOURCE_DIR@'
os.chdir('@CMAKE_SOURCE_DIR@/tests')
exec(open("@CMAKE_SOURCE_DIR@/tests/nebula-test-run.py").read())
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment