Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc
gekkofs
Commits
4110d879
Commit
4110d879
authored
May 18, 2022
by
Ramon Nou
Committed by
Ramon Nou
Jun 21, 2022
Browse files
opendir / rmdir errors
parent
c1ad07f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
4110d879
...
...
@@ -50,11 +50,11 @@ gkfs:
needs
:
[]
script
:
# Change config.hpp with sed to enable extra features
-
sed -i 's/
\/\/
constexpr auto use_atime =
false
;/constexpr auto use_atime =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/
\/\/
constexpr auto use_ctime =
false
;/constexpr auto use_ctime =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/
\/\/
constexpr auto use_mtime =
false
;/constexpr auto use_mtime =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/
\/\/
constexpr auto use_link_cnt =
false
;/constexpr auto use_link_cnt =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/
\/\/
constexpr auto use_blocks =
false
;/constexpr auto use_blocks =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/constexpr auto use_atime =
false
;/constexpr auto use_atime =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/constexpr auto use_ctime =
false
;/constexpr auto use_ctime =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/constexpr auto use_mtime =
false
;/constexpr auto use_mtime =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/constexpr auto use_link_cnt =
false
;/constexpr auto use_link_cnt =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
sed -i 's/constexpr auto use_blocks =
false
;/constexpr auto use_blocks =
true
;/g' "${CI_PROJECT_DIR}/include/config.hpp"
-
mkdir -p ${BUILD_PATH} && cd ${BUILD_PATH}
-
cmake
-Wdev
...
...
tests/integration/directories/test_directories.py
View file @
4110d879
...
...
@@ -189,6 +189,15 @@ def test_mkdir(gkfs_daemon, gkfs_client):
assert
d
.
d_name
==
e
[
0
]
assert
d
.
d_type
==
e
[
1
]
# Try to open a file as a dir
ret
=
gkfs_client
.
opendir
(
file_a
)
assert
ret
.
dirp
is
None
assert
ret
.
errno
==
errno
.
ENOTDIR
# Try to remove a non empty dir
ret
=
gkfs_client
.
rmdir
(
topdir
)
assert
ret
.
retval
==
-
1
assert
ret
.
errno
==
errno
.
ENOTEMPTY
return
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment