Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
Extra check for cgmemtime
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed Feb 9, 2020
1 parent 0d7a4d2 commit 04aaf35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion newRunMacroPerfTest
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
export MOZ_DISABLE_CONTENT_SANDBOX=1
export TALOS_PROCESS_START_RUNNER=$(realpath ../cgmemtime/cgmemtime)
CGMEMTIME_DIR=$(realpath ../cgmemtime/)
export TALOS_PROCESS_START_RUNNER=$CGMEMTIME_DIR/cgmemtime
unset MOZ_RLBOX_SANDBOX_NOLIMIT

# set -o xtrace
Expand All @@ -15,6 +16,11 @@ if [[ -f "$1" ]]; then
exit 1;
fi

if [ ! -e "/sys/fs/cgroup/memory/cgmemtime" ]; then
echo "cgmemtime not setup since comp restart. Setting up now."
sudo $CGMEMTIME_DIR/cgmemtime --setup -g $(USER) --perm 775;
fi

OUTPUTPATH=$(cd "$(dirname "$1")"; pwd)/$(basename "$1")
mkdir -p ${OUTPUTPATH}
cd "$(dirname "$0")"
Expand Down

0 comments on commit 04aaf35

Please sign in to comment.