Skip to content

Commit

Permalink
Fix Appsec integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cataphract committed Oct 7, 2024
1 parent 2cbe028 commit 4b1cb4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ trait CommonTests {
void 'module does not have STATIC_TLS flag'() {
Container.ExecResult res = container.execInContainer(
'bash', '-c',
'''! { readelf -d "$(php -r 'echo ini_get("extension_dir");')"/ddappsec.so | grep STATIC_TLS; }''')
'''! { readelf -d "$(DD_TRACE_CLI_ENABLED=0 php -r 'echo ini_get("extension_dir");')"/ddappsec.so | grep STATIC_TLS; }''')
if (res.exitCode != 0) {
throw new AssertionError("Module has STATIC_TLS flag: $res.stdout")
}
Expand Down
2 changes: 2 additions & 0 deletions appsec/tests/integration/src/test/www/laravel8x/initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

cd /var/www

export DD_TRACE_CLI_ENABLED=false

composer install --no-dev
chown -R www-data.www-data vendor

Expand Down
2 changes: 2 additions & 0 deletions appsec/tests/integration/src/test/www/symfony62/initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

cd /var/www

export DD_TRACE_CLI_ENABLED=false

composer install
php bin/console doctrine:database:drop --force
php bin/console doctrine:database:create
Expand Down

0 comments on commit 4b1cb4d

Please sign in to comment.