Commit 4e6f8167 authored by Maciej Wawryk's avatar Maciej Wawryk Committed by Tomasz Zawadzki
Browse files

scripts/vagrant: Clear environment variables in clearlinux



Clearlinux after installation has no empty environment variables,
which caused test failtures.

Signed-off-by: default avatarMaciej 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: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarMaciej Szwed <maciej.szwed@intel.com>
parent 8a1160fb
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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