scripts/vagrant: Clear environment variables in clearlinux
Clearlinux after installation has no empty environment variables, which caused test failtures. Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com> Change-Id: I8e0673a22c1fe3cf93232704bf8950be357a21b4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2717 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
This commit is contained in:
parent
8a1160fb77
commit
4e6f8167ea
12
scripts/vagrant/Vagrantfile
vendored
12
scripts/vagrant/Vagrantfile
vendored
@ -244,6 +244,18 @@ Vagrant.configure(2) do |config|
|
||||
end
|
||||
end
|
||||
|
||||
# Clear CFLAGS in clear linux
|
||||
if distro == "clearlinux"
|
||||
$clearcflags = <<-SCRIPT
|
||||
echo "export CFLAGS=" >> /etc/profile.d/clearcflags.sh
|
||||
echo "export CFFLAGS=" >> /etc/profile.d/clearcflags.sh
|
||||
echo "export CXXFLAGS=" >> /etc/profile.d/clearcflags.sh
|
||||
echo "export FFLAGS=" >> /etc/profile.d/clearcflags.sh
|
||||
echo "export THEANO_FLAGS=" >> /etc/profile.d/clearcflags.sh
|
||||
SCRIPT
|
||||
config.vm.provision "shell", inline: $clearcflags, run: "always"
|
||||
end
|
||||
|
||||
# Copy in the user's tools if they exists
|
||||
if File.directory?(File.expand_path("~/vagrant_tools"))
|
||||
config.vm.synced_folder "~/vagrant_tools", "/home/vagrant/tools", files_sync_backend
|
||||
|
Loading…
Reference in New Issue
Block a user