Skip to content
Snippets Groups Projects
Unverified Commit 0460db2c authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by GitHub
Browse files

Merge pull request #4482 from kilobyte/disable-eatmydata

kill eatmydata in some tests
parents 8d19e473 9979df2b
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
# #
# Copyright 2015-2019, Intel Corporation # Copyright 2015-2020, Intel Corporation
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
require_test_type medium require_test_type medium
require_fs_type any require_fs_type any
disable_eatmydata
setup setup
......
#!/usr/bin/env bash #!/usr/bin/env bash
# #
# Copyright 2015-2019, Intel Corporation # Copyright 2015-2020, Intel Corporation
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
require_test_type medium require_test_type medium
require_fs_type any require_fs_type any
disable_eatmydata
require_valgrind 3.7 require_valgrind 3.7
configure_valgrind drd force-enable configure_valgrind drd force-enable
......
#!/usr/bin/env bash #!/usr/bin/env bash
# #
# Copyright 2015-2019, Intel Corporation # Copyright 2015-2020, Intel Corporation
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
require_test_type medium require_test_type medium
require_fs_type any require_fs_type any
disable_eatmydata
require_valgrind 3.7 require_valgrind 3.7
configure_valgrind helgrind force-enable configure_valgrind helgrind force-enable
......
...@@ -1454,6 +1454,19 @@ require_dax_device_alignments() { ...@@ -1454,6 +1454,19 @@ require_dax_device_alignments() {
require_node_dax_device_alignments -1 $* require_node_dax_device_alignments -1 $*
} }
#
# disable_eatmydata -- ensure invalid msyncs fail
#
# Distros (and people) like to use eatmydata to kill fsync-likes during builds
# and testing. This is nice for speed, but we actually rely on msync failing
# in some tests.
#
disable_eatmydata() {
export LD_PRELOAD="${LD_PRELOAD/#libeatmydata.so/}"
export LD_PRELOAD="${LD_PRELOAD/ libeatmydata.so/}"
export LD_PRELOAD="${LD_PRELOAD/:libeatmydata.so/}"
}
# #
# require_fs_type -- only allow script to continue for a certain fs type # require_fs_type -- only allow script to continue for a certain fs type
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment